:root {
    --bg: #eef3f9;
    --card: #ffffff;
    --line: #d8e2f0;
    --blue-1: #0d4fa6;
    --blue-2: #2f80ed;
    --blue-3: #61a5ff;
    --text: #243142;
    --muted: #6f7e91;
    --danger: #ffe2e2;
    --danger-text: #a63a3a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(47, 128, 237, 0.10), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #edf2f8 100%);
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: var(--text);
}

.login-shell {
    width: min(420px, calc(100vw - 36px));
}

.box {
    padding: 14px 18px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 22px 55px rgba(20, 52, 95, 0.12);
}

.brand {
    padding: 0 0 10px;
    text-align: center;
}

.brand-image {
    max-width: 228px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

label,
input,
button {
    display: block;
    width: 100%;
}

label {
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted);
}

input {
    margin-bottom: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #fbfdff;
    color: var(--text);
}

button {
    border: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, var(--blue-3) 0%, var(--blue-2) 52%, var(--blue-1) 100%);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.android-download-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--blue-1);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 24px rgba(20, 52, 95, 0.10);
}

.android-download-button:active,
.android-download-button:hover {
    background: #f5f9ff;
}

.error {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--danger);
    color: var(--danger-text);
    font-size: 13px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 10px;
    font-size: 12px;
    color: var(--muted);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.forgot {
    color: var(--blue-2);
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.qr-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--blue-1);
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 14px 32px rgba(20, 52, 95, 0.16);
    cursor: pointer;
}

.qr-panel {
    position: fixed;
    top: 62px;
    right: 14px;
    width: min(300px, calc(100vw - 28px));
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(20, 52, 95, 0.22);
    z-index: 20;
}

.qr-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.qr-panel-head strong {
    font-size: 15px;
    color: var(--text);
}

.qr-close {
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fbfdff;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.mobile-qr-frame {
    display: grid;
    place-items: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.mobile-qr-frame img {
    display: block;
    width: 190px;
    height: 190px;
}

.qr-panel p {
    margin: 10px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.mobile-settings {
    margin: 0;
    display: grid;
    gap: 6px;
}

.mobile-settings div {
    padding: 7px 8px;
    background: #f6f9fd;
    border: 1px solid var(--line);
}

.mobile-settings dt {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-settings dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: bold;
    overflow-wrap: anywhere;
}
