@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* 
=====================================================
   MODERN AUTHENTICATION STYLES v2.1
   - Specialized for Login & Register Pages
   - Train Animation & Split Layout
   - Premium Form Inputs & Buttons
   - Enhanced Consistency with System Copy 2
===================================================== 
*/

:root {
    /* Color Palette - Professional Navy/Blue (Eye-friendly) */
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --secondary: #ec4899;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;

    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Borders & Shadows */
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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);

    /* Spacing */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;

    --font-outfit: 'Outfit', sans-serif;
}

[data-theme='dark'] {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-outfit);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Transitions */
.theme-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Layout Architecture --- */
.auth-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
}

.auth-visual-side {
    flex: 1.2;
    background-color: var(--bg-main);
    border-right: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    padding: 3rem;
    overflow: hidden;
}

/* Train Passing Animation */
.auth-animation-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.auth-train-track {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 200%;
    height: 2px;
    background: var(--border);
    opacity: 0.3;
}

.auth-train-track::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: repeating-linear-gradient(90deg, var(--border), var(--border) 2px, transparent 2px, transparent 15px);
}

.auth-train-passing {
    position: absolute;
    bottom: 18px;
    left: -300px;
    display: flex;
    align-items: center;
    gap: 2px;
    animation: trainPassAcross 25s linear infinite;
    opacity: 0.5;
}

.train-engine {
    color: var(--primary);
    font-size: 1.5rem;
}

.train-bogie {
    color: var(--accent);
    font-size: 1.2rem;
    margin-left: -5px;
}

@keyframes trainPassAcross {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw + 600px));
    }
}

.auth-visual-content {
    max-width: 480px;
    width: 100%;
    animation: fadeInContainer 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.auth-visual-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.auth-visual-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Testimonials System */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.testimonial-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.author-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Form Side --- */
.auth-form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: var(--bg-surface);
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

.auth-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.auth-brand-area {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.auth-tagline {
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-form-group {
    margin-bottom: 0.75rem;
}

.auth-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-input-contact {
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.auth-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.auth-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 8px;
}

.auth-footer-text {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-disclaimer {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.25rem;
    opacity: 0.7;
}

@keyframes fadeInContainer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        padding-top: 2rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 1.25rem;
    }

    .auth-card {
        padding: 0.5rem;
    }
}