* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #1a1a2e;
    color: #eee;
    line-height: 1.4;
}

.wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 15px;
}

.site-header {
    text-align: center;
    margin-bottom: 20px;
}

.site-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #0ea5e9;
    margin-bottom: 6px;
}

.site-welcome {
    color: #aaa;
    font-size: 0.9em;
    line-height: 1.3;
}

.card {
    background: #16213e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.card h1 {
    text-align: center;
    color: #0ea5e9;
    margin-bottom: 6px;
    font-size: 1.5em;
}

.muted {
    text-align: center;
    color: #888;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.blink-blue {
    color: #0ea5e9;
    font-weight: bold;
}

.blink-green {
    color: #10b981;
    font-weight: bold;
}

.flash {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9em;
}

.flash.error {
    background: #dc2626;
    color: #fff;
}

.flash.success {
    background: #10b981;
    color: #fff;
}

.row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.row > div {
    flex: 1;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.1em;
}

form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input[type="text"],
input[type="password"] {
    padding: 8px;
    border: 1px solid #333;
    background: #0f1419;
    color: #eee;
    border-radius: 4px;
    font-size: 13px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0ea5e9;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.footer-note {
    text-align: center;
    color: #666;
    font-size: 0.75em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

a {
    color: #0ea5e9;
    text-decoration: none;
    font-size: 0.9em;
}

a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wrap {
        padding: 10px;
        max-width: 100%;
    }
    
    .site-title {
        font-size: 1.4em;
    }
    
    .site-welcome {
        font-size: 0.8em;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h1 {
        font-size: 1.2em;
    }
    
    input[type="text"],
    input[type="password"],
    button {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .ssl-badge {
        display: none !important; /* Hide SSL badge on mobile to save space */
    }
    
    .zoom-label {
        display: inline !important; /* Show zoom label on mobile */
    }
    
    pre {
        font-size: 11px !important;
        padding: 8px !important;
        overflow-x: auto;
        white-space: pre !important;
    }
}
