/* ================================================================================
   PROJECT: Arctic Night / Authentication & Gateway Forms
   FILE: static/css/login.css
================================================================================ */

/* 1. BACKGROUND SHIELD */
#ascii-canvas, .crt-shell {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important; 
}

/* 2. THE FLEX SCAFFOLD (For standalone login page) */
.auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10;
}

.auth-card-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none; 
}

/* 3. THE OVERLAY SCAFFOLD (For the landing.html terminal interrupt) */
.auth-overlay {
    display: none; /* Managed by terminal-script.js */
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

/* 4. THE BESPOKE VAULT DOOR */
.auth-card {
    background: rgba(8, 12, 20, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(102, 179, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 179, 255, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px; 
    pointer-events: auto !important; 
    font-family: monospace; /* Terminal aesthetic for the forms */
}

/* 5. TYPOGRAPHY & ELEMENTS */
.auth-card-title {
    color: #66b3ff;
    border-bottom: 1px solid rgba(102, 179, 255, 0.2);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.auth-ascii-logo {
    color: #66b3ff;
    font-size: 0.65rem;
    line-height: 1.15;
    margin: 0 auto 25px auto;
    text-shadow: 0 0 5px rgba(102,179,255,0.4);
    text-align: center;
    pointer-events: none;
    white-space: pre; /* Prevents the text from wrapping */
}

.auth-error-panel {
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 77, 77, 0.1);
}

.auth-label {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
        
.auth-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(102, 179, 255, 0.3);
    border-radius: 4px;
    color: #66b3ff;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 20px;
    transition: border-color 0.3s, background 0.3s;
    pointer-events: auto !important;
    font-family: monospace;
}

.auth-input:focus {
    border-color: #66b3ff;
    background: rgba(0, 0, 0, 0.9);
}

.auth-input.dna-input-target {
    resize: vertical;
    min-height: 45px;
}

.auth-submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    background: transparent;
    border: 1px solid #66b3ff;
    border-radius: 4px;
    color: #66b3ff;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
    margin-top: 10px;
    pointer-events: auto !important;
    font-weight: 600;
}

.auth-submit-btn:hover {
    background: rgba(102, 179, 255, 0.1);
    box-shadow: 0 0 15px rgba(102, 179, 255, 0.15);
}

.auth-submit-wrapper {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    position: relative;
}

.auth-footer-link-wrapper {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid rgba(102, 179, 255, 0.15);
    padding-top: 20px;
}

.auth-footer-link {
    color: #4a90e2;
    text-decoration: none;
    border-bottom: 1px dotted #4a90e2;
    font-size: 0.9rem;
    pointer-events: auto !important;
    transition: color 0.2s;
}

.auth-footer-link:hover {
    color: #66b3ff;
    border-bottom-color: #66b3ff;
}

/* Landing Specific Identity Overrides */
.landing-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-copy-btn {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #66b3ff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.auth-copy-btn:hover {
    opacity: 1;
}

/* =================================================================
   SECTION 6: MOBILE RESPONSIVE OVERRIDES
   ================================================================= */
@media (max-width: 480px) {
    /* Reclaim screen real estate by reducing vault padding */
    .auth-card-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    /* Shrink the ASCII to mathematically fit the newly expanded interior */
    .auth-ascii-logo {
        font-size: 7px; /* No !important needed now that the cascade is correct */
        margin-bottom: 15px;
    }
}