/**
 * auth.css - Ultra Premium SaaS Authentication
 * High-End Design System with Micro-Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --auth-bg: #ffffff;
    --auth-side-bg: #f8fafc;
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-border: #f1f5f9;
    --auth-input-bg: #f8fafc;
    
    /* Layered Shadow System */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--auth-text-main);
    background-color: var(--auth-bg);
}

.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in { animation: fadeIn 1s ease forwards; }

.delay-100 { animation-delay: 100ms; opacity: 0; }
.delay-200 { animation-delay: 200ms; opacity: 0; }
.delay-300 { animation-delay: 300ms; opacity: 0; }
.delay-400 { animation-delay: 400ms; opacity: 0; }
.delay-500 { animation-delay: 500ms; opacity: 0; }

/* Side A: Animation Side */
.anim-side {
    flex: 1.3;
    background: var(--auth-side-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--auth-border);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent */
.anim-side::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--auth-primary);
    filter: blur(150px);
    opacity: 0.05;
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

dotlottie-wc {
    display: block;
    max-width: 100%;
    z-index: 1;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.05));
}

/* Side B: Form Side */
.form-side {
    width: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-bg);
    padding: 4rem;
    z-index: 10;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
}

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

.auth-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.75rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-logo span {
    color: var(--auth-primary);
}

.auth-subtitle {
    font-size: 11px;
    color: var(--auth-text-muted);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.auth-card h1 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.auth-card p {
    font-size: 1rem;
    color: var(--auth-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Modern Input System */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--auth-text-main);
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.125rem;
    color: var(--auth-text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.form-control {
    width: 100%;
    padding: 1rem 1.125rem 1rem 3rem; /* Extra left padding for icon */
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    background: var(--auth-input-bg);
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.1);
}

.form-control:focus + .input-icon {
    color: var(--auth-primary);
}

/* Action Button */
.btn-auth {
    width: 100%;
    padding: 1.125rem;
    background: var(--auth-primary);
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.btn-auth:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

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

.auth-footer-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--auth-border);
}

.auth-footer-link a {
    color: var(--auth-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

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

/* Recovery Link */
.recovery-link {
    display: inline-block;
    color: var(--auth-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.recovery-link:hover {
    opacity: 0.8;
}

/* Modal Enhancements */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

@media (max-width: 1024px) {
    .anim-side { display: none; }
    .form-side { width: 100%; padding: 2rem; }
}