/* === CSS CHO TRANG DANG-NHAP.HTML === */

.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 50px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- Tabs --- */
.auth-tabs {
    display: flex;
    background-color: #f5f5f5;
}

.tab-link {
    flex: 1;
    padding: 18px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link.active {
    color: #e00b0f;
    background-color: #ffffff;
    border-bottom-color: #e00b0f;
}

/* --- Form Content --- */
.auth-content {
    padding: 30px;
}

.auth-form {
    display: none; /* Ẩn theo mặc định */
}

.auth-form.active {
    display: block; /* Hiện khi active */
}

.auth-form h2 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.auth-form p {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* --- Form Groups --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.forgot-pass {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #007bff;
    margin-top: -10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.terms {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 20px;
}
.terms label {
    margin-left: 5px;
}
.terms a {
    color: #007bff;
    text-decoration: none;
}

/* --- Auth Button --- */
.auth-btn {
    width: 100%;
    padding: 15px;
    background-color: #e00b0f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-btn:hover {
    background-color: #b8090d;
}

/* --- Social Login --- */
.social-login {
    text-align: center;
    margin-top: 30px;
}

.social-login p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
    position: relative;
}

/* Tạo đường gạch ngang */
.social-login p::before,
.social-login p::after {
    content: '';
    display: block;
    width: 35%;
    height: 1px;
    background-color: #ddd;
    position: absolute;
    top: 50%;
}
.social-login p::before { left: 0; }
.social-login p::after { right: 0; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    color: white;
    background-color: #e00b0f;
    border-color: #e00b0f;
}