/**
 * METRIC — Centered 2-Column Floating Glassmorphic Login (Rendered by Vite)
 * Built with UI/UX Pro Max Design Intelligence
 * Ambient Moving Particles, Heroic Left Column & Right Form with Pachabol Logo
 */

/* Viewport Centering & Transparent Layout */
.auth-viewport-centered {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    position: relative;
    z-index: 2;
    background: transparent;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    display: block;
}

/* Master Centered Floating Card (Glassmorphism & Depth) */
.auth-master-card {
    width: 100%;
    max-width: 1220px;
    min-height: 660px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    box-shadow: 0 35px 80px -15px rgba(15, 28, 46, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.85);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: fadeInScale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ==========================================================================
   Left Column: Hero Artwork (login.png + Telemetry)
   ========================================================================== */

.hero-cinematic-panel {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 52px 38px;
    z-index: 2;
    background: #0f1c2e;
}

/* Background Image with Cinematic Vignette Overlay */
.hero-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    animation: slowCinematicZoom 28s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes slowCinematicZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.07); }
}

/* Atmospheric Multi-Stop Gradient Masks */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, 
        rgba(15, 28, 46, 0.38) 0%, 
        rgba(15, 28, 46, 0.25) 30%, 
        rgba(15, 28, 46, 0.86) 70%,
        rgba(15, 28, 46, 0.97) 100%
    );
}

.hero-radial-glow {
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 223, 0.3) 0%, transparent 70%);
    filter: blur(75px);
    z-index: 3;
    pointer-events: none;
}

/* Bottom Hero Copy & Floating Telemetry Badges */
.hero-bottom-content {
    position: relative;
    z-index: 4;
}

.hero-tagline-kicker {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--cyan);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 223, 0.14);
    border: 1px solid rgba(16, 185, 223, 0.35);
    padding: 4px 12px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.hero-headline-text {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    letter-spacing: -0.6px;
    margin-bottom: 24px;
    max-width: 540px;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hero-headline-text span.cyan-highlight {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(16, 185, 223, 0.6);
}

/* Floating Glassmorphic Telemetry Cards */
.hero-telemetry-grid {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.telemetry-card {
    background: rgba(15, 28, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.telemetry-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(16, 185, 223, 0.6);
    box-shadow: 0 20px 45px rgba(16, 185, 223, 0.25);
}

.telemetry-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.telemetry-icon-box.lime {
    background: rgba(145, 197, 27, 0.2);
    color: #bbf443;
    border: 1px solid rgba(145, 197, 27, 0.5);
    box-shadow: 0 0 12px rgba(145, 197, 27, 0.3);
}

.telemetry-icon-box.cyan {
    background: rgba(16, 185, 223, 0.2);
    color: var(--cyan);
    border: 1px solid rgba(16, 185, 223, 0.5);
    box-shadow: 0 0 12px rgba(16, 185, 223, 0.3);
}

.telemetry-metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.telemetry-metric-lbl {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    margin-top: 1px;
}

.hero-footer-security {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* ==========================================================================
   Right Column: Logo Pachabol Header & High-Contrast Form
   ========================================================================== */

.form-interactive-panel {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 50px;
    background: #ffffff;
    overflow-y: auto;
    z-index: 2;
}

/* Form Container Card */
.form-content-box {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 440px;
    padding: 6px 0;
}

/* Top Pachabol Brand Header */
.right-col-brand-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.9);
}

.brand-right-logo {
    height: 68px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(16, 185, 223, 0.35));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-right-logo:hover {
    transform: scale(1.06) rotate(-2deg);
}

.brand-right-meta {
    display: flex;
    flex-direction: column;
}

.brand-right-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #0f1c2e;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-pill-tag {
    font-size: 13px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    background: var(--cyan-gradient);
    color: #ffffff;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 10px rgba(16, 185, 223, 0.4);
}

.pachabol-pill-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--lime-light);
    color: #5c840c;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 5px;
    align-self: flex-start;
    border: 1px solid rgba(145, 197, 27, 0.4);
    box-shadow: 0 2px 6px rgba(145, 197, 27, 0.15);
}

.form-header-area {
    margin-bottom: 24px;
}

.form-header-area h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #0f1c2e;
    margin-bottom: 5px;
    line-height: 1.15;
}

.form-header-area p {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

/* Polished Inputs */
.form-group-item {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 7px;
}

.field-input-wrapper {
    position: relative;
    width: 100%;
}

.field-leading-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: color 0.25s ease;
}

.auth-text-input {
    width: 100%;
    height: 50px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 46px 0 48px;
    font-size: 14.5px;
    color: #0f1c2e;
    font-weight: 500;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 28, 46, 0.03);
}

.auth-text-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(16, 185, 223, 0.2), 0 6px 20px rgba(16, 185, 223, 0.12);
    background: #ffffff;
}

.auth-text-input:focus + .field-leading-icon,
.field-input-wrapper:focus-within .field-leading-icon {
    color: var(--cyan);
}

.btn-eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 7px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-eye-toggle:hover {
    color: var(--cyan);
    background: rgba(16, 185, 223, 0.08);
}

/* Options Bar: Remember Me & Forgot Password */
.auth-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #334155;
    font-weight: 600;
    user-select: none;
}

.remember-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--cyan);
    cursor: pointer;
    border-radius: 5px;
}

.link-forgot-pass {
    color: #0896b5;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-forgot-pass:hover {
    color: var(--cyan);
    text-decoration: underline;
}

/* Primary Submit Button with Glowing Shimmer */
.btn-primary-auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--cyan-gradient);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 26px -4px rgba(16, 185, 223, 0.45);
    position: relative;
    overflow: hidden;
}

.btn-primary-auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.75s ease;
}

.btn-primary-auth-submit:hover::before {
    left: 100%;
}

.btn-primary-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -4px rgba(16, 185, 223, 0.6);
}

.btn-primary-auth-submit:active {
    transform: translateY(0) scale(0.99);
}

.btn-primary-auth-submit .arrow-icon {
    transition: transform 0.25s ease;
    font-size: 18px;
}

.btn-primary-auth-submit:hover .arrow-icon {
    transform: translateX(4px);
}

/* Error Alerts */
.auth-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Rules */
@media(max-width: 1040px) {
    .auth-master-card {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    
    .hero-cinematic-panel {
        min-height: 400px;
        padding: 38px 28px;
    }

    .form-interactive-panel {
        padding: 40px 28px;
    }
}

@media(max-width: 480px) {
    .auth-viewport-centered {
        padding: 16px 10px;
    }

    .hero-cinematic-panel {
        padding: 28px 18px;
        min-height: 320px;
    }
    
    .hero-headline-text {
        font-size: 25px;
    }

    .hero-telemetry-grid {
        display: none;
    }

    .form-interactive-panel {
        padding: 30px 18px;
    }

    .brand-right-title {
        font-size: 26px;
    }
}
