/* ===== Padel on Point - Auth Stylesheet ===== */

/* ===== Auth Page Layout ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: calc(var(--header-height) + 2rem) 1rem 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.auth-logo span {
    color: var(--primary);
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    padding: 1.5rem 2rem;
    background: var(--gray-100);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* ===== Auth Form ===== */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-size: 0.9375rem;
}

.auth-form .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.auth-form .btn-block {
    padding: 0.875rem;
    font-size: 1rem;
}

/* ===== Password Input with Toggle ===== */
.password-wrapper {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover {
    color: var(--primary);
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--text-dark);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.9375rem;
    color: var(--primary);
}

.forgot-link:hover {
    color: var(--primary-dark);
}

/* ===== Divider ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Social Login ===== */
.social-login {
    display: flex;
    gap: 1rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--text-light);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.btn-social i {
    font-size: 1.25rem;
}

.btn-google i { color: #DB4437; }
.btn-facebook i { color: #4267B2; }

/* ===== Password Strength ===== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-fill.weak { width: 33%; background: var(--danger); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: #856404; }
.strength-text.strong { color: var(--success); }

/* ===== Password Requirements ===== */
.password-requirements {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.password-requirements p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.password-requirements ul {
    margin: 0;
    padding: 0;
}

.password-requirements li {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.password-requirements li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    left: 0;
    font-size: 0.5rem;
    top: 0.25rem;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid::before {
    content: '\f00c';
    font-weight: 900;
}

/* ===== Success State ===== */
.auth-success {
    text-align: center;
    padding: 2rem;
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.auth-success h3 {
    margin-bottom: 0.5rem;
}

.auth-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== Error State ===== */
.auth-error {
    text-align: center;
    padding: 2rem;
}

.auth-error-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-radius: var(--radius-full);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* ===== Verification Notice ===== */
.verification-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.verification-notice i {
    color: var(--warning);
    margin-right: 0.5rem;
}

.verification-notice a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .auth-header {
        padding: 2rem 1.5rem 1.25rem;
    }

    .auth-body {
        padding: 1.5rem;
    }

    .auth-footer {
        padding: 1.25rem 1.5rem;
    }

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

    .social-login {
        flex-direction: column;
    }
}
