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

:root {
    --radius-xl: 12px;
    --frost-bg: rgba(255, 255, 255, 0.58);
    --frost-border: rgba(209, 213, 219, 0.68);
    --frost-shadow: 0 10px 22px rgba(2, 12, 27, 0.18);
    --frost-inset: 0 0 0 1px rgba(191, 219, 254, 0.18) inset;
    --frost-blur: 12px;
    --frost-saturate: 145%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0066cc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Static brand background with soft glows. Drawn once on a fixed layer, so
   scrolling never repaints it (it used to be an endlessly animated gradient,
   which repainted the whole page every frame). */
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.22), transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(0, 120, 138, 0.55), transparent 48%),
        linear-gradient(135deg, #1e90ff 0%, #00788a 35%, #0066cc 70%, #004c8c 100%);
    pointer-events: none;
}


.screen {
    display: none;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    width: min(920px, 96vw);
}

.login-shortcuts {
    background: var(--frost-bg);
    border: 1px solid var(--frost-border);
    box-shadow: var(--frost-shadow), var(--frost-inset);
    backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturate));
    -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturate));
    padding: 20px 16px;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-shortcuts__title {
    margin: 0;
    color: #1e90ff;
    font-size: 18px;
    font-weight: 700;
}

.login-shortcuts__hint {
    margin: 0 0 4px 0;
    color: #6b7280;
    font-size: 13px;
}

.btn-quick {
    width: 100%;
    background: #1f2937;
    color: #fff;
    border: 1px solid #1f2937;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.btn-quick:hover {
    background: #1e90ff;
    border-color: #1e90ff;
}

.btn-quick:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-container {
    background: var(--frost-bg);
    padding: 40px;
    border-radius: 0;
    border: 1px solid var(--frost-border);
    box-shadow: var(--frost-shadow), var(--frost-inset);
    backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturate));
    -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturate));
    width: 90%;
    max-width: 420px;
    margin: 0 20px;
}

@media (max-width: 480px) {
    .login-layout {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .login-shortcuts {
        width: 90%;
        margin: 0 15px;
    }

    .login-container {
        padding: 30px 20px;
        width: 90%;
        margin: 0 15px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    /* Registered trademark mark next to the brand name */
.brand-mark {
    margin-left: 1px;
    font-size: 0.5em;
    font-weight: 600;
    line-height: 0;
    vertical-align: super;
}

.logo h1 {
        font-size: 24px;
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 28px;
    color: #1e90ff;
    margin-bottom: 5px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1e90ff;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #1e90ff;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #0066cc;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 0;
    margin-bottom: 15px;
    display: none;
}

a {
    color: #0099ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
