html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
}

.svt-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.svt-banner {
    width: 100%;
    line-height: 0;
    background: #000;
}
.svt-banner img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
}

.svt-content {
    flex: 1 0 auto;
    background: #e8e8e8;
    padding: 30px 20px;
}
.svt-form-wrap {
    max-width: 520px;
    margin: 0 auto;
    background: transparent;
    padding: 20px 30px;
}

/* Top-level blocks (title, instructions, form, info, etc.) span the
   full wrap inner so their borders make wide separator lines. The
   form rows / Submit / EntraID are narrower and centered below. */
.svt-form-wrap > * {
    margin-left: auto;
    margin-right: auto;
}

.svt-title {
    font-size: 18px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
    padding: 0 0 8px;
    border-bottom: 1px solid #b0b0b0;
    text-align: center;
}

.svt-form {
    display: block;
}
/* Inputs / Submit / EntraID centered at the original input-column width. */
.svt-row {
    max-width: 308px;
    margin: 0 auto 14px;
}
.svt-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 4px;
    text-align: left;
}
.svt-input {
    box-sizing: border-box;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #888;
    background: #ffffff;
    font-size: 13px;
    font-family: inherit;
}
.svt-input:focus {
    outline: 2px solid #009999;
    outline-offset: 0;
}

.svt-submit-row {
    margin-top: 18px;
}

.svt-submit {
    background: #009999;
    color: #ffffff;
    border: 1px solid #007777;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.svt-submit:hover { background: #007777; }
.svt-submit-secondary {
    background: #888;
    border-color: #666;
    margin-left: 8px;
}
.svt-submit-secondary:hover { background: #666; }

.svt-checkbox-row {
    margin-top: -4px;
}
.svt-checkbox-label {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.svt-link-row {
    margin: 12px auto 0;
    max-width: 308px;
    padding-left: 0;
    text-align: center;
    font-size: 12px;
}
.svt-link-row a {
    color: #000066;
    text-decoration: none;
}
.svt-link-row a:hover { text-decoration: underline; }

.svt-instructions {
    font-size: 13px;
    margin: 0 auto 16px;
    color: #555;
}

.svt-field-error {
    display: block;
    margin-top: 4px;
    color: #b00020;
    font-size: 12px;
}

.svt-message {
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 13px;
    border-left: 4px solid;
    background: #ffffff;
}
.svt-message-success { border-color: #2e7d32; color: #1b5e20; }
.svt-message-warning { border-color: #ed6c02; color: #b85b00; }
.svt-message-error   { border-color: #b00020; color: #800000; }
.svt-message-info    { border-color: #0288d1; color: #014a73; }
.svt-message-icon { font-weight: bold; margin-right: 6px; }

.svt-social {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #b0b0b0;
}
.svt-social ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 308px;
}
.svt-social li {
    margin-bottom: 8px;
}
.svt-social-link {
    display: block;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    padding: 7px 18px;
    background: #ffffff;
    border: 1px solid #007777;
    color: #003366;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}
.svt-social-link:hover {
    background: #009999;
    color: #ffffff;
}

.svt-info {
    margin-top: 20px;
    font-size: 12px;
    color: #555;
}

/* TOTP enrollment */
.svt-totp-steps {
    padding-left: 22px;
    margin: 0 0 20px;
    font-size: 13px;
}
.svt-totp-steps > li {
    margin-bottom: 14px;
}
.svt-totp-apps {
    margin: 6px 0 0 0;
    padding-left: 18px;
    font-size: 12px;
}
.svt-totp-qr {
    display: block;
    margin: 8px 0;
    border: 1px solid #b0b0b0;
    background: #fff;
    padding: 4px;
    width: 200px;
    height: 200px;
}
.svt-totp-secret code {
    display: inline-block;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #b0b0b0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
}
.svt-totp-detail {
    margin: 6px 0 0 0;
    padding-left: 18px;
    font-size: 12px;
}
.svt-link-line {
    margin: 6px 0;
    font-size: 12px;
}
.svt-link-line a {
    color: #000066;
    text-decoration: none;
}
.svt-link-line a:hover { text-decoration: underline; }

/* Recovery codes */
.svt-recovery-codes {
    list-style: decimal inside;
    padding: 12px 16px;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #b0b0b0;
    column-count: 2;
    column-gap: 24px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}
.svt-recovery-codes li {
    margin-bottom: 4px;
}
.svt-recovery-codes code {
    font-family: inherit;
}

/* Multi-credential radio (login-otp.ftl) */
.svt-credential-row {
    align-items: start;
}
.svt-radio-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    cursor: pointer;
}
.svt-radio-label input { margin-right: 6px; }

.svt-footer {
    flex-shrink: 0;
    background: #ffffff;
    padding: 16px 24px;
    border-top: 1px solid #b0b0b0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    color: #555;
}
.svt-footer-logo {
    height: 28px;
    width: auto;
}
.svt-footer-text {
    margin: 0;
}
.svt-footer-text a {
    color: #000066;
    text-decoration: none;
}
.svt-footer-text a:hover { text-decoration: underline; }
.svt-pipe {
    margin: 0 4px;
    color: #888;
}

@media (max-width: 600px) {
    .svt-row { grid-template-columns: 1fr; }
    .svt-label { text-align: left; }
    .svt-checkbox-label { grid-column: 1; }
    .svt-submit-row .svt-submit { grid-column: 1; }
    .svt-social ul { padding-left: 0; }
    .svt-banner img { max-height: 120px; }
}

.svt-social {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    padding-bottom: 12px;
    border-bottom: 1px solid #b0b0b0;
}
