/* Auth Page Styles (Login/Register) */
.auth-page {
    margin: 0;
    padding: 0;
}

/* Premium Auth Background */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
    position: relative;
    overflow: hidden;
    background: var(--bg-base);
    /* Fallback */
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            hsl(280, 80%, 20%) 0%,
            hsl(260, 70%, 15%) 25%,
            hsl(240, 60%, 12%) 50%,
            hsl(220, 50%, 10%) 75%,
            hsl(200, 40%, 8%) 100%);
}

.auth-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.auth-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.auth-bg-glow-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, hsl(330, 80%, 50%), hsl(280, 80%, 50%));
    top: -100px;
    left: -100px;
}

.auth-bg-glow-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, hsl(200, 80%, 50%), hsl(160, 80%, 50%));
    bottom: -150px;
    right: -150px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: var(--spacing-8);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .auth-card {
    background: rgba(30, 30, 40, 0.95);
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: var(--spacing-6);
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-2);
}

.auth-logo h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, hsl(330, 80%, 50%), hsl(280, 80%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-1);
}

/* Auth Title */
.auth-title {
    text-align: center;
    margin-bottom: var(--spacing-6);
}

.auth-title h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-2);
}

.auth-title p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Instagram Button */
.btn-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(131, 58, 180, 0.3);
    color: white;
}

.instagram-icon {
    flex-shrink: 0;
}

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

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.password-toggle .icon-eye {
    display: block;
    width: 20px;
    height: 20px;
}

.password-toggle .icon-eye-off {
    display: none;
    width: 20px;
    height: 20px;
}

.password-toggle.active .icon-eye {
    display: none;
}

.password-toggle.active .icon-eye-off {
    display: block;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-5) 0;
}

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

.auth-divider span {
    padding: 0 var(--spacing-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    /* Changed from text-tertiary for better variable support */
}

/* Form Row (for 2-column inputs) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}