body {
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(107, 142, 45, 0.13),
            transparent 38%
        ),
        var(--color-background);
}

.access-page {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 28px 18px;
}

.access-card {
    width: min(100%, 520px);
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 20px 55px rgba(31, 41, 55, 0.14);
}

.access-logo {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--color-text);
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
}

.access-logo span {
    color: var(--color-primary);
}

.access-kicker {
    margin: 0 0 7px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.access-card h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.2;
}

.access-intro {
    margin: 14px 0 24px;
    color: var(--color-text-soft);
    line-height: 1.65;
}

.access-card .form-group {
    margin-bottom: 19px;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-soft);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(107, 142, 45, 0.1);
    color: var(--color-primary-dark);
    outline: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-rule-warning {
    margin: 7px 0 0;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.password-rule-warning[hidden] {
    display: none;
}

.password-field .form-control.is-invalid {
    border-color: #b91c1c;
    outline: 3px solid rgba(185, 28, 28, 0.12);
}

.access-submit {
    width: 100%;
    margin-top: 5px;
}

.access-success-icon,
.access-error-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
}

.access-success-icon {
    background: #dcfce7;
    color: #166534;
}

.access-error-icon {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 560px) {
    .access-card {
        padding: 25px 20px;
    }
}

.access-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}

.access-label-row .form-label {
    margin-bottom: 0;
}

.access-forgot-link {
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.access-forgot-link:hover,
.access-forgot-link:focus-visible {
    text-decoration: underline;
}

.access-back-link {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.access-back-link:hover,
.access-back-link:focus-visible {
    text-decoration: underline;
}