/* === Background === */
body.login-ui, .login-ui {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%) !important;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === Hide Apache avocado logo === */
.login-ui .login-dialog .logo {
    display: none !important;
}

/* === Replace big "APACHE GUACAMOLE" header with custom title === */
.login-ui .login-dialog h1 {
    color: #f1f5f9;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 1.75rem;
    text-align: center;
}
.login-ui .login-dialog h1::before {
    content: "🖥️";
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* === Login card === */
.login-ui .login-dialog {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    max-width: 380px;
    width: 90%;
}

/* === Input fields === */
.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"] {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f1f5f9;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.login-ui .login-dialog input[type="text"]:focus,
.login-ui .login-dialog input[type="password"]:focus {
    border-color: #818cf8;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
    outline: none;
}
.login-ui .login-dialog input::placeholder {
    color: #64748b;
}

/* === Login button === */
.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog button[type="submit"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    width: 100%;
}
.login-ui .login-dialog input[type="submit"]:hover,
.login-ui .login-dialog button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* === Version footer === */
.login-ui .version {
    color: rgba(148, 163, 184, 0.4) !important;
    background: transparent !important;
    font-size: 0.7rem;
}

/* === Labels === */
.login-ui .login-dialog .login-fields .labeled-field label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
