.login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.login__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.login__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.3); /* var(--navy) at 55% */
    z-index: 1;
}

.login__form {
    position: relative;
    z-index: 2;
    width: 320px;
    padding: 32px;
    background: var(--cream-2, #fff);
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login__title {
    margin: 0 0 16px;
    font-size: 20px;
    text-align: center;
}

.login__label {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

.login__form input[type="email"],
.login__form input[type="password"],
.login__form input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.login__password-wrap {
    position: relative;
    display: flex;
}

.login__password-wrap input {
    padding-right: 36px;
}

.login__password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    line-height: 1;
}

/* Invisible hit-slop: expands the tap target to 44x44 without growing
   the visible icon, so it doesn't crowd the input text. */
.login__password-toggle::after {
    content: "";
    position: absolute;
    inset: -14px;
}

.login__password-toggle:hover {
    color: #444;
}

.login__remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 8px;
}

.login__submit {
    margin-top: 16px;
    padding: 10px;
    background: var(--accent, #2563eb);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.login__submit:hover {
    background: var(--accent-dark, #1d4ed8);
}

.login__error {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
}

.login__error--locked {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.login__version {
    margin: 4px 0 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: #999;
}

/* --- OTP verification page --- */
.otp {
    position: relative;
    z-index: 2;
    width: 340px;
    padding: 32px;
    background: var(--cream-2, #fff);
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.otp__title {
    margin: 0 0 12px;
    font-size: 20px;
}

.otp__lead {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
}

.otp__error {
    margin-bottom: 16px;
    text-align: left;
}

.otp__boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.otp__digit {
    width: 44px;
    height: 52px;
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #1a1a2e;
}

.otp__digit:focus {
    outline: none;
    border-color: var(--accent, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.otp__digit:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.otp__timer {
    font-size: 12px;
    color: #777;
    margin: 14px 0 0;
}

.otp__timer--expired {
    color: #991b1b;
}

.otp__submit {
    width: 100%;
}

.otp__resend {
    margin-top: 12px;
}

.otp__resend-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: none;
    background: none;
    color: var(--accent, #2563eb);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

.otp__resend-btn:hover {
    text-decoration: underline;
}

.otp__back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 10px;
    padding: 4px 8px;
    font-size: 12px;
    color: #666;
}
