/* Modern Auth Page Redesign */
:root {
    --auth-bg: #f8f9fc;
    --auth-card-bg: #ffffff;
    --auth-text-main: #1f2937;
    --auth-text-muted: #6b7280;
    --auth-primary: #5a4b81; /* Dark purple from button */
    --auth-primary-hover: #4a3e6a;
    --auth-border: #e5e7eb;
    --auth-ring: rgba(90, 75, 129, 0.2);
}

[data-theme="dark"] {
    --auth-bg: #111827;
    --auth-card-bg: #1f2937;
    --auth-text-main: #f9fafb;
    --auth-text-muted: #9ca3af;
    --auth-border: #374151;
}

body.auth-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--auth-bg);
}

.modern-auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LEFT SIDE: VISUAL (GRADIENT) */
.auth-visual-section {
    display: none;
    flex: 1;
    background: linear-gradient(135deg, #f97316 0%, #d946ef 35%, #3b82f6 65%, #10b981 100%);
    position: relative;
    overflow: hidden;
    color: white;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

@media (min-width: 992px) {
    .auth-visual-section {
        display: flex;
    }
}

.auth-visual-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.visual-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.visual-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.visual-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.95;
    flex-wrap: wrap;
}

.visual-stats .divider {
    opacity: 0.5;
}

/* CSS Decorative Shapes for Left Panel */
@keyframes floatShape1 {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
}

.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 15%;
    transform: rotate(15deg);
    animation: floatShape1 6s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    left: 10%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    animation: floatShape2 5s ease-in-out infinite 1s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: -10%;
    right: 20%;
    background: linear-gradient(135deg, #f97316 0%, #d946ef 100%);
    animation: floatShape3 8s ease-in-out infinite 2s;
}

/* RIGHT SIDE: FORM */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background-color: var(--auth-bg);
}

/* Subtle background rings on the form side */
.auth-form-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 15px solid rgba(90, 75, 129, 0.03);
    z-index: 0;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 15px var(--auth-bg), inset 0 0 0 30px rgba(90, 75, 129, 0.03);
}

.auth-card {
    background: var(--auth-card-bg);
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

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

.auth-logo {
    height: 72px;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-main);
    margin: 0 0 0.25rem 0;
}

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

.auth-welcome {
    font-size: 1rem;
    color: var(--auth-text-main);
    font-weight: 500;
}

.modern-auth-form .input-group-custom {
    position: relative;
    margin-bottom: 1rem;
}

.modern-auth-form .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s;
}

.modern-auth-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background-color: var(--auth-card-bg);
    color: var(--auth-text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.modern-auth-form .form-control::placeholder {
    color: #9ca3af;
}

.modern-auth-form .form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-ring);
}

.modern-auth-form .form-control:focus + .input-icon,
.modern-auth-form .input-group-custom:focus-within .input-icon {
    color: var(--auth-primary);
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.reset-link {
    color: var(--auth-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

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

.btn-modern {
    background-color: var(--auth-primary);
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-modern:hover {
    background-color: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 75, 129, 0.2);
}

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

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

.auth-footer a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Animations */
.auth-card {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
