.portal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f4ef;
    color: #1c1c1c;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}
.portal__main {
    width: 100%;
    max-width: 440px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.portal__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}
.portal__brand img { width: 96px; height: 96px; object-fit: contain; }
.portal__card { width: 100%; background: #fff; border: 1px solid #e6e2d8; padding: 32px 28px; }
.portal__card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 500; text-align: center; }
.portal__card .lead { margin: 0 0 22px; color: #5c5c5c; font-size: 14px; line-height: 1.5; }
.portal__error { background: #fff4f4; color: #c8102e; border: 1px solid #f0c2c8; padding: 10px 12px; margin-bottom: 16px; font-size: 14px; }
.portal__ok { background: #f4faf4; color: #1c1c1c; border: 1px solid #c9e2c9; padding: 10px 12px; margin-bottom: 16px; font-size: 14px; }
.portal__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.portal__field label { font-size: 13px; font-weight: 500; }
.portal__field input {
    height: 44px;
    border: 1px solid #d9d4c8;
    padding: 0 12px;
    font: inherit;
    color: #1c1c1c;
    background: #fff;
}
.portal__field input:focus { outline: 2px solid #f5c400; border-color: #1c1c1c; }
.portal__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 13px; }
.portal__captcha { margin: 0 0 16px; min-height: 78px; }
@media (max-width: 420px) {
    .portal__captcha { height: 72px; overflow: hidden; }
    .portal__captcha .g-recaptcha { transform: scale(0.88); transform-origin: left top; }
}
.portal__row a { color: #c8102e; font-weight: 500; text-decoration: none; }
.portal__check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.portal__check a { color: #c8102e; }
.portal__submit {
    width: 100%;
    height: 46px;
    border: 0;
    background: #c8102e;
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.portal__submit:hover { background: #a30d25; }
.portal__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 1px solid #d9d4c8;
    background: #fff;
    color: #1c1c1c;
    font-weight: 500;
    text-decoration: none;
}
.portal__google:hover { border-color: #1c1c1c; }
.portal__foot { margin: 18px 0 0; font-size: 14px; text-align: center; }
.portal__foot a, .portal__home { color: #c8102e; font-weight: 500; font-size: 14px; text-decoration: none; }

/* OTP verification */
.portal-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
}
.portal-lang__link {
    color: #8a8478;
    text-decoration: none;
    padding: 4px 6px;
}
.portal-lang__link.is-on { color: #c8102e; font-weight: 600; }
.portal-lang__link:hover { color: #1c1c1c; }
.portal-lang__sep { color: #d9d4c8; user-select: none; }
.portal__main--otp { max-width: 460px; }
.portal__card--otp { padding: 36px 28px 32px; text-align: center; }
.portal-otp__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff9e8 0%, #fff3cc 100%);
    border: 1px solid #f0e0a8;
    color: #c8102e;
}
.portal-otp__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8102e;
}
.portal__card--otp .lead { text-align: center; margin-bottom: 24px; }
.portal__card--otp .portal__field { text-align: left; }
.portal-otp {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.portal-otp__digit {
    width: 44px;
    height: 52px;
    padding: 0;
    border: 1px solid #d9d4c8;
    border-radius: 4px;
    background: #fafaf8;
    font: inherit;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #1c1c1c;
    caret-color: #c8102e;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.portal-otp__digit:focus {
    outline: none;
    border-color: #c8102e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.portal-otp__hint {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b6560;
    text-align: center;
}
.portal-otp__resend { margin-top: 16px; text-align: center; }
.portal-otp__resend-btn {
    border: 0;
    background: none;
    padding: 8px 4px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #c8102e;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.portal-otp__resend-btn:hover { color: #a30d25; }
@media (max-width: 400px) {
    .portal-otp { gap: 6px; }
    .portal-otp__digit { width: 40px; height: 48px; font-size: 20px; }
}
