* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #172b4d;
    overflow-x: hidden;
}

/* ==========================================================================
   หน้าจอหลอกล่อ (Bait Screen) - Corporate / Atlassian aesthetic
   ========================================================================== */
.card {
    background: #ffffff;
    border: 1px solid #dfe1e6;
    border-radius: 8px;
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    margin: 20px;
    box-shadow: 0 4px 16px rgba(9, 30, 66, 0.08), 0 1px 4px rgba(9, 30, 66, 0.04);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #deebff;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #091e42;
    letter-spacing: -0.2px;
}

.card p {
    font-size: 13.5px;
    color: #5e6c84;
    margin-bottom: 24px;
    line-height: 1.55;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #42526e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.field-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #dfe1e6;
    border-radius: 6px;
    font-size: 18px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    letter-spacing: 4px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fafbfc;
    color: #091e42;
}

.field-group input:focus {
    border-color: #0052cc;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

.btn-submit {
    width: 100%;
    background-color: #0052cc;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background-color: #0747a6;
}

.btn-submit:active {
    transform: scale(0.99);
}

.card-footer-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ebecf0;
    text-align: center;
    font-size: 11px;
    color: #8993a4;
}

/* ==========================================================================
   Incident Telemetry Terminal Screen - Enterprise Audit Mode
   ========================================================================== */
#alert-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050608;
    color: #ff3333;
    padding: 32px 40px;
    z-index: 9999999;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    user-select: none;
}

/* Subtle CRT Scanline Effect */
.alert-overlay-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
    opacity: 0.6;
}

.alert-header {
    border-bottom: 2px solid #ff3333;
    padding-bottom: 16px;
    position: relative;
    z-index: 3;
}

.alert-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.warning-badge {
    background: #ff1a1a;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.threat-level {
    color: #ff4d4d;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
}

.alert-header h1 {
    font-size: 22px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff3b3b;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.6);
}

.alert-body {
    flex: 1;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.85;
    color: #c9d1d9;
    margin: 20px 0;
    white-space: pre-wrap;
    padding-right: 12px;
    position: relative;
    z-index: 3;
}

/* Custom terminal scrollbar */
.alert-body::-webkit-scrollbar {
    width: 6px;
}
.alert-body::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}
.alert-body::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

.alert-line {
    animation: typeIn 0.08s ease-in;
}

@keyframes typeIn {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-body .highlight {
    color: #ff3333;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

.alert-body .highlight-warning {
    color: #ffab00;
    font-weight: bold;
}

.alert-body .highlight-success {
    color: #00ff66;
    font-weight: bold;
}

.alert-body .highlight-cyan {
    color: #00e5ff;
    font-weight: bold;
}

.alert-footer {
    border-top: 1px solid #252830;
    padding-top: 14px;
    font-size: 12px;
    color: #8b949e;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.status-active {
    color: #ff4d4d;
    font-weight: bold;
    animation: blinkText 1.2s infinite;
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.flashing {
    animation: pulse-border 0.8s infinite alternate;
}

@keyframes pulse-border {
    from { 
        border-color: #ff3333; 
        box-shadow: 0 2px 14px rgba(255, 51, 51, 0.3);
    }
    to { 
        border-color: #660000; 
        box-shadow: 0 2px 6px rgba(102, 0, 0, 0.1);
    }
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 640px) {
    #alert-layer {
        padding: 20px 16px;
    }
    .alert-header h1 {
        font-size: 16px;
    }
    .alert-body {
        font-size: 12px;
        line-height: 1.6;
    }
    .alert-footer {
        font-size: 11px;
    }
}
