*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--app-bg); color: var(--app-text); font: 14px/1.55 var(--ui-font); }
a { color: #17665f; }
:focus-visible { outline: 3px solid #278176; outline-offset: 3px; }
.access-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: stretch; padding: clamp(16px, 2.5vw, 48px); }
.access-page :is(.login-card,.register-card,.card) { width: 100%; padding: clamp(24px,4vw,44px); border: 1px solid var(--app-border); border-radius: 24px; background: white; box-shadow: 0 2px 8px #163f3b07; }
.access-page .app-brand { margin-bottom: 24px; }
.access-page :is(h1,h2) { color: var(--app-heading); font-size: 25px; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 20px; }
.access-page h2 i { display: none; }
.access-page form { display: flex; flex-direction: column; gap: 7px; }
.access-label { margin-top: 6px; font-weight: 600; font-size: 13px; }
.access-page input:not([type=radio]):not([type=hidden]) { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #c8d7d2; border-radius: 10px; background: var(--app-field); color: var(--app-text); font: inherit; }
.access-page form input::placeholder { color: transparent; }
.access-page button, .access-page .btn, .download-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 13px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--app-green); color: white; font: 650 14px var(--ui-font); text-decoration: none; cursor: pointer; }
.access-page button:hover, .access-page .btn:hover, .download-btn:hover { background: var(--app-green-hover); }
.access-page .role-container { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; }
.access-page input[type=radio] { accent-color: var(--app-green); }
.access-page .error, .access-page .success { padding: 12px; border-radius: 10px; }
.access-page .error { background: #fff2ed; color: #853723; }
.access-page .success { background: var(--app-green-soft); color: var(--app-green); }
.access-page footer, .protocol-page .meta { margin-top: 22px; color: var(--app-muted); font-size: 12px; text-align: center; }
.access-page .status-icon { margin-bottom: 8px; }
.protocol-page .shell { width: 100%; padding: clamp(16px, 2.5vw, 48px); }
.protocol-page .hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(26px,4vw,48px); border-radius: 24px; color: #fff; background: var(--app-green); }
.protocol-page .hero::after { content: ""; position: absolute; z-index: -1; right: -36px; bottom: -82px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid #ffffff10; }
.protocol-page .hero-label { text-transform: uppercase; font-weight: 650; letter-spacing: .1em; font-size: 11px; color: #d4e9df; }
.protocol-page h1 { max-width: 560px; margin: 14px 0 10px; font-size: clamp(26px,4vw,40px); line-height: 1.12; letter-spacing: -.035em; }
.protocol-page .lead { max-width: 530px; margin: 0; color: #d5e6e1; }
.protocol-page .grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.protocol-page .card { padding: 24px; background: white; border: 1px solid var(--app-border); border-radius: var(--ui-radius); }
.card-mark { width: 40px; height: 40px; display: grid; place-items: center; background: #d9efeb; color: #17665f; border-radius: 12px; }
.protocol-page .card:nth-child(2) .card-mark { background: #edf3cf; color: #536c24; }
.protocol-page h2 { margin: 16px 0 5px; color: var(--app-heading); font-size: 19px; }
.protocol-page .card p { margin: 6px 0; color: var(--app-muted); }
@media (max-width: 640px) { .protocol-page .grid { grid-template-columns: 1fr; } .access-page { padding: 16px; } }

@media (min-width: 740px) {
    .access-page :is(.login-card,.register-card) form { display: grid; grid-template-columns: minmax(180px,1fr) minmax(0,2fr); align-items: center; gap: 12px 24px; }
    .access-page :is(.login-card,.register-card) form > :is(button,.role-container) { grid-column: 2; }
    .access-page :is(.login-card,.register-card) form > button { justify-self: start; }
}
