.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}

.portal-login-wrap{
    min-height:440px
}

.portal-step[hidden]{
    display:none!important
}

.portal-step.is-active{
    animation:portal-step-in .2s ease-out
}

@keyframes portal-step-in{
    from{opacity:0;transform:translateY(5px)}
    to{opacity:1;transform:translateY(0)}
}

.portal-message{
    margin:0 0 16px;
    padding:11px 12px;
    border:1px solid #dedede;
    border-radius:10px;
    color:#555;
    background:#fafafa;
    font-size:12px;
    line-height:1.5
}

.portal-message.is-error{
    color:var(--danger);
    border-color:#efc3c3;
    background:#fff8f8
}

.portal-message.is-success{
    color:var(--success);
    border-color:#b8dfcc;
    background:#f6fffa
}

.portal-step-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin:0 0 20px
}

.portal-step-heading h2{
    margin:0 0 6px;
    font:700 18px/1.2 "Inter Tight",sans-serif;
    letter-spacing:-.025em
}

.portal-step-heading p{
    margin:0;
    color:var(--muted);
    font-size:12px;
    line-height:1.55
}

.portal-back,
.portal-link-button{
    appearance:none;
    border:0;
    padding:0;
    color:#222;
    background:transparent;
    font-size:12px;
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:2px;
    cursor:pointer
}

.portal-back:hover,
.portal-link-button:hover{
    color:var(--orange)
}

.portal-email-field input[readonly]{
    color:#555;
    background:#f7f7f7;
    cursor:default
}

.portal-recovery-entry{
    display:block;
    margin:14px auto 0;
    appearance:none;
    border:0;
    padding:0;
    color:#333;
    background:transparent;
    font-size:14px;
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:2px;
    cursor:pointer
}

.portal-recovery-entry:hover{color:var(--orange)}

.portal-recovery-help{
    margin:-10px 0 16px;
    color:var(--muted);
    font-size:11px;
    line-height:1.5
}

.portal-login-wrap .password-wrap input{
    padding-right:82px
}

.submit-btn:disabled,
.portal-link-button:disabled{
    opacity:.55;
    cursor:not-allowed
}

.submit-btn.is-loading{
    color:transparent;
    position:relative
}

.submit-btn.is-loading::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:16px;
    height:16px;
    margin:-8px 0 0 -8px;
    border:2px solid rgba(255,255,255,.4);
    border-top-color:#fff;
    border-radius:50%;
    animation:portal-spin .7s linear infinite
}

@keyframes portal-spin{to{transform:rotate(360deg)}}

.otp-heading{
    margin-bottom:24px
}

.otp-label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:9px;
    color:#343434;
    font-size:12px;
    font-weight:600
}

.otp-timer{
    min-width:48px;
    color:var(--orange);
    font-variant-numeric:tabular-nums;
    text-align:right
}

.otp-inputs{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px
}

.otp-inputs input{
    width:100%;
    min-width:0;
    aspect-ratio:1/1;
    border:1px solid var(--border);
    border-radius:10px;
    outline:none;
    color:#171717;
    background:#fff;
    font-size:22px;
    font-weight:700;
    text-align:center;
    caret-color:var(--orange)
}

.otp-inputs input:focus{
    border-color:var(--orange);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 17%,transparent)
}

.otp-inputs.is-error input{
    border-color:var(--danger);
    animation:portal-shake .24s linear
}

@keyframes portal-shake{
    25%{transform:translateX(-2px)}
    75%{transform:translateX(2px)}
}

.otp-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:38px;
    margin-top:10px;
    color:var(--muted);
    font-size:11px
}

.password-rules{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px 14px;
    margin:-2px 0 20px;
    padding:0;
    list-style:none;
    color:#777;
    font-size:11px
}

.password-rules li::before{
    content:"•";
    margin-right:6px;
    color:#aaa
}

.password-rules li.is-valid{
    color:var(--success)
}

.password-rules li.is-valid::before{
    content:"✓";
    color:var(--success)
}

@media(max-width:560px){
    .portal-login-wrap{min-height:420px}
    .otp-inputs{gap:7px}
    .otp-inputs input{font-size:19px;border-radius:9px}
    .password-rules{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
    .portal-step.is-active,
    .otp-inputs.is-error input,
    .submit-btn.is-loading::after{animation:none}
}
