:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #101a20;
    color: #102c3e;
}

.ec10-access-overlay {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(7, 18, 24, 0.84), rgba(7, 18, 24, 0.9)),
        radial-gradient(circle at top left, #2f7774, #102c3e 62%);
}

.ec10-access-dialog {
    position: relative;
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    text-align: center;
}

.ec10-access-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #526873;
    font-size: 1.65rem;
    line-height: 1;
    text-decoration: none;
}

.ec10-access-close:hover,
.ec10-access-close:focus-visible {
    background: #edf2f3;
    color: #102c3e;
    outline: none;
}

.ec10-access-mark {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 12px;
    background: #2f7774;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ec10-access-dialog h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
}

.ec10-access-dialog > p {
    margin: 9px 0 24px;
    color: #5c6d76;
}

.ec10-access-dialog form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.ec10-access-dialog label {
    color: #38505c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ec10-access-dialog input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #b9c8cf;
    border-radius: 7px;
    background: #f7f9fa;
    color: #102c3e;
    font: inherit;
}

.ec10-access-dialog input[type="password"]:focus {
    border-color: #2f7774;
    outline: 3px solid rgba(47, 119, 116, 0.18);
}

.ec10-access-help,
.ec10-access-error {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ec10-access-help {
    color: #596d77;
}

.ec10-access-help a {
    color: #246966;
    font-weight: 800;
}

.ec10-access-error {
    padding: 9px 10px;
    border-left: 3px solid #b42331;
    background: #fff0f1;
    color: #9c1f2c;
    font-weight: 800;
}

.ec10-access-dialog button[type="submit"] {
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid #246966;
    border-radius: 7px;
    background: #2f7774;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.ec10-access-dialog button[type="submit"]:hover,
.ec10-access-dialog button[type="submit"]:focus-visible {
    background: #246966;
    outline: 3px solid rgba(47, 119, 116, 0.2);
}

@media (max-width: 480px) {
    .ec10-access-overlay {
        padding: 14px;
    }

    .ec10-access-dialog {
        padding: 30px 20px 22px;
    }
}
