* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1e1e2e;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: monospace;
}

/* Login screen */
#login-screen {
    position: fixed;
    inset: 0;
    background: #1e1e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#login-box {
    background: #181825;
    border: 1px solid #313244;
    border-radius: 8px;
    padding: 32px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#login-box h2 {
    color: #cdd6f4;
    font-size: 16px;
    text-align: center;
}

#login-box input {
    background: #1e1e2e;
    border: 1px solid #45475a;
    border-radius: 4px;
    color: #cdd6f4;
    padding: 10px 12px;
    font-size: 14px;
    font-family: monospace;
    outline: none;
}

#login-box input:focus {
    border-color: #89b4fa;
}

#login-box button {
    background: #89b4fa;
    color: #1e1e2e;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

#login-box button:hover {
    background: #b4d0fa;
}

#login-error {
    color: #f38ba8;
    font-size: 12px;
    text-align: center;
    min-height: 16px;
}

/* Terminal */
header {
    background: #181825;
    color: #cdd6f4;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid #313244;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

#status {
    margin-left: auto;
    font-size: 12px;
    color: #a6e3a1;
}

#terminal-container {
    flex: 1;
    padding: 8px;
    overflow: hidden;
    min-height: 0; /* critical — without this, flex children don't shrink properly */
}