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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 40% 35%, #DE1219 0%, #8A181A 100%);
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,.20);
}

.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; color: #111; margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: #888; text-align: center; margin-bottom: 24px; line-height: 1.5; }

.form-group { margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: #333; display: block; margin-bottom: 4px; }
.form-group input { width: 100%; padding: 9px 12px; border: 1px solid #dde; border-radius: 8px; font-size: 14px; color: #111; outline: none; transition: border-color .15s; }
.form-group input:focus { border-color: #c0392b; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 36px; }
.toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #aaa; font-size: 16px; line-height: 1; padding: 0; }
.toggle-pw:hover { color: #555; }

.btn-primary {
    width: 100%; padding: 11px; background: #111; color: #fff;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; margin-top: 8px; display: flex; align-items: center;
    justify-content: center; gap: 6px; transition: background .15s;
}
.btn-primary:hover { background: #333; }

.btn-secondary {
    width: 100%; padding: 11px; background: #fff; color: #333;
    border: 1px solid #dde; border-radius: 8px; font-size: 14px;
    cursor: pointer; margin-top: 8px; transition: background .15s;
}
.btn-secondary:hover { background: #f5f5f5; }

.auth-link { display: block; text-align: center; margin-top: 18px; font-size: 12px; color: #888; text-decoration: none; }
.auth-link:hover { color: #444; }

.otp-row { display: flex; gap: 8px; justify-content: center; margin: 0 0 20px; }
.otp-box { width: 38px; height: 44px; border: 1px solid #dde; border-radius: 8px; text-align: center; font-size: 20px; font-weight: 600; color: #111; outline: none; transition: border-color .15s; }
.otp-box:focus { border-color: #c0392b; }

.remember-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; margin-bottom: 8px; cursor: pointer; }
.remember-row input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; accent-color: #c0392b; }

.alert-error { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

.client-list { list-style: none; padding: 0; margin: 0 0 8px; border: 1px solid #dde; border-radius: 8px; max-height: 300px; overflow-y: auto; font-size: 14px; }
.client-list li label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f0f0; font-weight: normal; }
.client-list li:last-child label { border-bottom: none; }
.client-list li label:hover { background: #fafafa; }
.group-header { padding: 6px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #aaa; background: #f8f8f8; border-bottom: 1px solid #f0f0f0; }

/* language switch: EN | CS */
.lang-switch { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; }
.lang-switch a, .lang-switch strong { color: #fff; text-decoration: none; padding: 0 3px; }
.lang-switch a { opacity: .75; }
.lang-switch a:hover, .lang-switch a:focus { opacity: 1; text-decoration: underline; }
.lang-switch strong { font-weight: 700; }
.lang-switch-corner { position: fixed; top: 14px; right: 18px; }
