/* ===== Auth Pages Styles ===== */

body {
    min-height: 100vh;
    background: var(--pink-lightest);
}

.auth-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.auth-sidebar {
    background: linear-gradient(135deg, var(--pink-accent), var(--pink-dark));
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sidebar-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4xl);
}

.auth-logo:hover {
    color: var(--white);
}

.auth-logo .logo-heart {
    font-size: 1.5rem;
}

.sidebar-message {
    margin-bottom: var(--space-2xl);
}

.sidebar-message h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.sidebar-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
}

.sidebar-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--white);
    font-size: 1rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.sidebar-quote {
    margin-top: auto;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.sidebar-quote .quote-mark {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-quote p {
    color: var(--white);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-hearts span {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: floatAuth 20s infinite ease-in-out;
}

.floating-hearts span:nth-child(1) { right: 10%; top: 20%; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { right: 30%; bottom: 30%; animation-delay: 3s; }
.floating-hearts span:nth-child(3) { right: 5%; bottom: 10%; animation-delay: 6s; }

@keyframes floatAuth {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ===== Main Content ===== */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-header h1 {
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--text-light);
}

/* ===== Form Styles ===== */
.auth-form {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.password-toggle:hover {
    opacity: 1;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-link {
    font-size: 0.9rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--white);
    border: 2px solid var(--pink-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-custom::after {
    content: '✓';
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--pink-accent);
    border-color: var(--pink-accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    line-height: 1.4;
}

.checkbox-text a {
    text-decoration: underline;
}

/* Subdomain Status */
.subdomain-status.checking {
    color: var(--text-muted);
}

.subdomain-status.available {
    color: #38a169;
}

.subdomain-status.taken {
    color: #e53e3e;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pink-pale);
}

/* Social Auth */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem;
    background: var(--white);
    border: 2px solid var(--pink-pale);
    border-radius: var(--radius-lg);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-social:hover {
    border-color: var(--pink-accent);
    background: var(--pink-lightest);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--text-light);
}

.auth-footer a {
    font-weight: 600;
}

/* Button Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-sidebar {
        display: none;
    }
    
    .auth-main {
        padding: var(--space-lg);
    }
    
    .auth-form-container {
        max-width: 100%;
    }
    
    .auth-header {
        margin-bottom: var(--space-lg);
    }
    
    .auth-header::before {
        content: '💕';
        display: block;
        font-size: 3rem;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: var(--space-lg);
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
}

/* ===== Payment Notice (Signup) ===== */
.payment-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: center;
}

.payment-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-accent), var(--pink-dark));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.payment-notice p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.secure-notice {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

/* ===== Success Banner (Login) ===== */
.success-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.success-banner strong {
    display: block;
    color: #065f46;
    margin-bottom: 2px;
}

.success-banner p {
    color: #047857;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Error Banner ===== */
.error-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 1px solid #f87171;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.error-banner strong {
    display: block;
    color: #991b1b;
    margin-bottom: 2px;
}

.error-banner .error-text,
.error-banner p {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Form Help Text ===== */
.form-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}