/* ==========================================================================
   Login, 2-step verification and error pages (_LoginLayout).
   ========================================================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    background: var(--vts-login-background);
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    padding: 40px 48px;
    background: #f9f9f9;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

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

.login-logo img {
    max-width: 100%;
    height: 60px;
    width: auto;
}

.login-intro {
    color: var(--vts-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.request-id {
    color: var(--vts-muted);
}

/* ---------------------------------------------------- 2-step verification */

.attempts {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.9rem;
    color: var(--vts-muted);
}

.device-status {
    text-align: center;
    font-style: italic;
    font-weight: 600;
    margin: 16px 0;
}

.code-input {
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.8rem !important;
    letter-spacing: 0.5em;
    text-align: center;
}

.form-field input.is-valid {
    border-color: var(--vts-green);
    color: var(--vts-green);
}

.form-field input.is-invalid {
    border-color: var(--vts-red);
    color: var(--vts-red);
}

.code-status {
    min-height: 1.2em;
    margin: 4px 0 0;
    font-size: 0.95rem;
}

.code-status-success {
    color: var(--vts-green);
}

.code-status-error {
    color: var(--vts-red);
}

.other-methods {
    margin-top: 16px;
}

.other-methods summary {
    cursor: pointer;
    color: var(--vts-blue-dark);
}

.method-list {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.method-list td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--vts-border);
}

.method-list td:nth-child(2) {
    width: 100%;
    font-size: 1.1rem;
}

.method-status {
    width: 40px;
    text-align: center;
    font-size: 1.4rem;
    color: #91ace1;
}

.method-list tr.configured .method-status {
    color: var(--vts-green);
}

.method-list input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.qr {
    text-align: center;
    margin-bottom: 12px;
}

.manual-key {
    font-size: 0.9rem;
    color: var(--vts-muted);
}

.blocked h1 {
    color: var(--vts-red);
}

@media (max-width: 540px) {
    .login-card {
        padding: 32px 20px;
    }

    .code-input {
        letter-spacing: 0.25em;
    }
}
