/* ============================================
   AUTH PAGES STYLES
   Sign In & Sign Up Pages
   ============================================ */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    width: 100%;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s var(--ease-smooth);
}

.auth-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--glow-primary);
}

.auth-icon i {
    font-size: 2.5rem;
    color: white;
}

.auth-title {
    font-size: var(--font-size-h1);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    margin: 0;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label i {
    font-size: var(--icon-size-sm);
    color: var(--primary-purple);
}

.password-input-wrapper {
    position: relative;
}

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

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

.password-toggle i {
    font-size: var(--icon-size-sm);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary-purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
}

.checkbox-text {
    user-select: none;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: var(--font-size-small);
    color: var(--color-danger);
}

.form-error i {
    font-size: var(--icon-size-xs);
}

.checkbox-label.error {
    color: var(--color-danger);
}

.checkbox-label.error .checkbox-custom {
    border-color: var(--color-danger);
}

.link-inline {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-inline:hover {
    color: var(--primary-cyan);
    text-decoration: underline;
}

.forgot-password-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.btn-auth {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-body);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: var(--font-size-small);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-size-small);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.google:hover {
    border-color: #ea4335;
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.social-btn.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.social-btn i {
    font-size: var(--icon-size-md);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin: 0;
}

.auth-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-cyan);
    text-decoration: underline;
}


/* ============================================
   RESPONSIVE STYLES
   ============================================ */


@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem 0;
        min-height: calc(100vh - 70px);
        margin-top: 70px;
    }

    .auth-card {
        padding: 2rem;
        border-radius: 16px;
    }

    .auth-icon {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

    .auth-icon i {
        font-size: 2rem;
    }

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

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

    .social-auth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0;
        min-height: calc(100vh - 65px);
        margin-top: 65px;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .auth-icon i {
        font-size: 1.75rem;
    }

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

    .auth-subtitle {
        font-size: var(--font-size-small);
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

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

    .btn-auth {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-small);
    }
}
