* { box-sizing: border-box; }
html { min-width: 320px; }
button, input { font: inherit; }
.portal-auth { display: flex; justify-content: center; align-items: center; min-height: 500px; padding: 70px 20px 90px; background: #f7f7f7; text-align: center; }
.portal-auth__box { width: 100%; max-width: 520px; padding: 42px 48px 38px; border-top: 5px solid #005bac; background: #ffffff; box-shadow: 0 10px 32px rgba(0, 39, 72, 0.12); }
.portal-auth__icon { margin: 0 0 14px; color: #005bac; font-size: 1.6rem; text-align: center; }
.portal-auth__title { margin: 0; color: #222222; font-size: 1.7rem; font-weight: 700; line-height: 1.45; text-align: center; }
.portal-auth__text { margin: 12px 0 28px; color: #555555; font-size: 0.95rem; line-height: 1.8; text-align: center; }
.portal-auth__error { margin: 0 auto 20px; padding: 12px 14px; border: 1px solid #e5b7ba; border-radius: 4px; color: #852b30; background: #fff1f2; font-size: 0.9rem; font-weight: 700; line-height: 1.6; text-align: center; }
.portal-auth__form { display: grid; justify-items: center; gap: 12px; width: 100%; }
.portal-auth__label { width: 100%; color: #333333; font-size: 0.9rem; font-weight: 700; text-align: center; }
.portal-auth__input { width: 100%; max-width: 380px; min-height: 54px; padding: 12px 16px; border: 1px solid #a9b4bd; border-radius: 4px; color: #222222; background: #fbfcfd; box-shadow: inset 0 1px 2px rgba(0, 39, 72, 0.06); font-size: 1rem; line-height: 1.5; text-align: center; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.portal-auth__input:hover { border-color: #60798e; background: #ffffff; }
.portal-auth__input:focus { border-color: #005bac; outline: 3px solid rgba(0, 91, 172, 0.2); outline-offset: 1px; background: #ffffff; box-shadow: 0 0 0 1px #005bac; }
.portal-auth__button { width: 100%; max-width: 380px; min-height: 54px; margin-top: 8px; padding: 12px 20px; border: 1px solid #005bac; border-radius: 4px; color: #ffffff; background: #005bac; box-shadow: 0 4px 10px rgba(0, 91, 172, 0.22); font-weight: 700; letter-spacing: 0.06em; cursor: pointer; transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.portal-auth__button:hover { background: #004788; box-shadow: 0 6px 14px rgba(0, 71, 136, 0.28); }
.portal-auth__button:active { transform: translateY(1px); }
.portal-auth__button:focus-visible { outline: 3px solid rgba(0, 91, 172, 0.25); outline-offset: 3px; }
.portal-auth__note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #e3e3e3; color: #666666; font-size: 0.78rem; line-height: 1.7; text-align: center; }
@media (max-width: 540px) { .portal-auth { align-items: flex-start; min-height: 420px; padding: 48px 14px 60px; } }
@media (max-width: 540px) { .portal-auth__box { padding: 34px 24px 30px; } }
@media (prefers-reduced-motion: reduce) { .portal-auth__input, .portal-auth__button { transition: none; } }
