.nerv-body .auth-wrapper {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 64px 24px 80px;
    background: #f6f7f9;
}
.nerv-body .auth-card {
    width: min(100%, 480px);
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 40px rgb(27 33 45 / 5%);
    color: #22252b;
    font-size: 15px;
    line-height: 1.65;
}
.nerv-body .auth-card .brand-header { margin: 0 0 24px; }
.nerv-body .auth-card .brand-icon {
    display: block;
    width: 106px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}
.nerv-body .auth-card h1 {
    margin: 0 0 10px;
    color: #171a20;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -.035em;
    font-weight: 650;
}
.nerv-body .auth-subtitle { margin: 0 0 30px; color: #69717d; font-size: 15px; line-height: 1.7; }
.nerv-body .auth-card a.text-link { color: #cf292d; font-size: 14px; text-decoration: none; }
.nerv-body .auth-card a.text-link:hover { color: #a91920; text-decoration: underline; }
.nerv-body .auth-field { display: flex; flex-direction: column; }
.nerv-body .auth-field > label {
    order: -1;
    display: block;
    margin: 0 0 8px;
    color: #414854;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
}
.nerv-body .auth-card .form-control {
    width: 100%;
    min-height: 50px;
    height: 50px;
    padding: 12px 14px;
    background: #fafbfc !important;
    border: 1px solid #dce0e6 !important;
    border-radius: 9px;
    color: #20242c !important;
    font-size: 16px;
    line-height: 24px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.nerv-body .auth-card .form-control:focus {
    background: #fff !important;
    border-color: #cf292d !important;
    box-shadow: 0 0 0 3px rgb(207 41 45 / 9%);
    outline: none;
}
.nerv-body .auth-card .form-control::placeholder { color: #8b929b; }
.nerv-body .auth-card .btn-gradient {
    min-height: 50px;
    padding: 12px 20px;
    background: #cf292d;
    border: 1px solid #cf292d;
    border-radius: 9px;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    box-shadow: none;
}
.nerv-body .auth-card .btn-gradient:hover { background: #b82228; border-color: #b82228; color: #fff; }
.nerv-body .auth-card .btn-gradient:focus-visible,
.nerv-body .auth-card .btn-outline-primary:focus-visible,
.nerv-body .auth-card .btn-passkey:focus-visible { outline: 3px solid rgb(207 41 45 / 25%); outline-offset: 3px; }
.nerv-body .auth-card .btn-passkey,
.nerv-body .auth-card .btn-outline-primary {
    min-height: 50px;
    padding: 12px 10px !important;
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 9px;
    color: #4d5561;
    font-size: 14px;
    line-height: 24px;
    white-space: nowrap;
}
.nerv-body .auth-card .btn-passkey:hover,
.nerv-body .auth-card .btn-outline-primary:hover { color: #b82228; border-color: #cf292d; background: #fff7f7; }
.nerv-body .auth-card .btn-passkey { display: flex; align-items: center; justify-content: center; gap: 10px; }
.nerv-body .auth-card [hidden] { display: none !important; }
.nerv-body .auth-card .btn-passkey__icon { width: 22px; height: 22px; }
.nerv-body .auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-left: 0;
    color: #626a76;
    font-size: 14px;
}
.nerv-body .auth-card input[type=checkbox] { width: 16px; height: 16px; accent-color: #cf292d; }
.nerv-body .auth-card .auth-verification-row { --bs-gutter-x: 12px; align-items: flex-end; }
.nerv-body .auth-card .image-code {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 50px;
    border: 1px solid #e0e4e9;
    border-radius: 9px;
    cursor: pointer;
    background: #f4f5f7;
    object-fit: contain;
}
.nerv-body .auth-card .divider { display: flex; align-items: center; gap: 16px; color: #858c97; text-align: center; font-size: 14px; }
.nerv-body .auth-card .divider::before,
.nerv-body .auth-card .divider::after { content: ''; flex: 1; height: 1px; background: #e8ebef; }
.nerv-body .auth-card .auth-footer-link { margin: 24px 0 0; color: #707885; font-size: 14px; }
.nerv-body .auth-card .auth-password-note { margin: 16px 0 0; color: #858b95; font-size: 12px; line-height: 1.8; }
.nerv-body .auth-card .d-flex.justify-content-between { gap: 12px; margin-bottom: 24px !important; }
@media (max-width: 560px) {
    .nerv-body .auth-wrapper { min-height: 60vh; padding: 32px 16px 48px; }
    .nerv-body .auth-card { padding: 30px 24px; border-radius: 16px; }
    .nerv-body .auth-card .brand-header { margin-bottom: 20px; }
    .nerv-body .auth-card h1 { font-size: 27px; }
    .nerv-body .auth-subtitle { margin-bottom: 26px; }
    .nerv-body .auth-card .auth-verification-row > .col-8 { width: 60%; }
    .nerv-body .auth-card .auth-verification-row > .col-4 { width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
    .nerv-body .auth-card .form-control { transition: none; }
}
