/* ====================================
   AUTH STYLES - Modern Login/Signup Design
   ==================================== */

.auth-main {
    min-height: calc(100vh - 80px - 60px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
}

.auth-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

/* ========== Formulaire Section ========== */
.auth-form-section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-form-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: left;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: left;
}

/* ========== Google Auth Section ========== */
.google-auth-section {
    margin-bottom: 1.5rem;
}

/* ========== Divider ========== */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #666;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== Form Styles ========== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.form-group label svg {
    color: #6366f1;
    flex-shrink: 0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #6366f1;
}

.toggle-password.active {
    color: #6366f1;
}

.form-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: -0.25rem;
}

/* ========== Form Options ========== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

/* ========== Checkbox Styles ========== */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container:hover .checkmark {
    border-color: #6366f1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #6366f1;
    border-color: #6366f1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #333;
}

.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-group .checkbox-label a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group .checkbox-label a:hover {
    text-decoration: underline;
}

/* ========== Links ========== */
.forgot-password {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ========== Submit Button ========== */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ========== Auth Footer ========== */
.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-footer p {
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========== Benefits Section ========== */
.auth-benefits-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.benefits-content {
    width: 100%;
}

.benefits-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 12px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.benefit-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.benefit-text h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== Messages ========== */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-benefits-section {
        display: none;
    }

    .auth-form-section {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .auth-main {
        padding: 1rem 0;
    }

    .auth-layout {
        padding: 0 1rem;
    }

    .auth-form-section {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ========== Dark Theme Support (Optional) ========== */
@media (prefers-color-scheme: dark) {
    .auth-form-section {
        background: #1a1a1a;
    }

    .auth-title {
        color: #ffffff;
    }

    .auth-subtitle,
    .auth-footer p {
        color: #aaa;
    }

    .form-group label {
        color: #ddd;
    }

    .form-group input {
        background: #2a2a2a;
        border-color: #404040;
        color: #fff;
    }

    .form-group input:focus {
        background: #333;
    }

    .checkbox-label {
        color: #ddd;
    }

    .checkmark {
        background-color: #2a2a2a;
        border-color: #404040;
    }
}
