/* ============================================
   AUTHENTICATION PAGES STYLES - AVANT GARDE
   ============================================ */

/* Top Navbar - Minimalist & Glass */
.auth-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) var(--spacing-xl);
    z-index: 100;
    transition: all 0.3s ease;
}

[data-theme="dark"] .auth-navbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.auth-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-nav-link:hover {
    color: var(--primary-500);
}

.auth-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding-top: 0;
    /* Removing padding as we have a full height split */
}

/* Main Layout - Split Screen */
.auth-container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar - The "Art" Section */
.auth-sidebar {
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
    color: white;
    padding: var(--spacing-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Refined Gradient Mesh */
.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1), transparent 40%);
    z-index: 1;
    animation: liquidMove 30s ease-in-out infinite alternate;
}

@keyframes liquidMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, -10%) scale(1.1);
    }
}

.sidebar-content {
    position: relative;
    z-index: 5;
    max-width: 480px;
    margin: 0 auto;
}

/* Typography Upgrade */
.sidebar-tagline {
    font-family: var(--font-family);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(to right, #ffffff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInSlide 1s ease forwards;
}

.sidebar-subtext {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 300;
    max-width: 360px;
    opacity: 0;
    animation: fadeInSlide 1s ease 0.2s forwards;
}

/* Abstract Flow Graphic (CSS Art) */
.abstract-flow {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 2;
    animation: rotate 60s linear infinite;
}

.abstract-flow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Main Content - The "Form" Section */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background: var(--bg-secondary);
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: transparent;
    padding: 0;
    /* Removed card borders/shadows for a cleaner look on the split screen, 
       or we can keep them subtle if preferred. Let's go minimal. */
}

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

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Styling - Ultra Refined */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background: var(--bg-primary);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Button - Magnetic & Glow */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

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

/* Footer Links */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}

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

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-sidebar {
        display: none;
        /* Hide sidebar on tablet/mobile for focus */
    }
}

/* ============================================
   RESET ICON STYLES
   ============================================ */

.reset-icon-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.reset-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-icon-circle.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.reset-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-500);
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-icon.lock-icon {
    opacity: 1;
    transform: scale(1);
}

.reset-icon.success-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}

.reset-icon-circle.success .lock-icon {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

.reset-icon-circle.success .success-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: #10b981;
}

/* ============================================
   SUCCESS STATE STYLES
   ============================================ */

.success-state {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-sent-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.email-sent-info svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.email-sent-info span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.success-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.resend-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.resend-section span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.btn-resend {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--primary-600);
    border: 1px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-resend:hover:not(:disabled) {
    background: var(--primary-500);
    color: white;
}

.btn-resend:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Status Message Styles */
.status-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-align: center;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}