.login-notice-open {
    overflow: hidden;
}

.login-notice {
    width: min(580px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    margin: auto;
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    font-family: "Nunito", sans-serif;
}

.login-notice::backdrop {
    background: rgb(38 58 89 / 65%);
}

.login-notice h2 {
    margin: 8px 28px 22px 0;
    color: var(--navy-950);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.4;
}

.login-notice p {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.login-notice-important {
    padding: 16px;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--navy-900);
}

.login-notice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.7rem;
    cursor: pointer;
}

.login-notice-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.login-notice .login-notice-actions .login-notice-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: linear-gradient(110deg, #405575 0%, #685f8d 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgb(65 87 119 / 9%);
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
}

.login-notice-secondary {
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--navy-800);
    font-weight: 700;
    cursor: pointer;
}

.login-notice-secondary:hover,
.login-notice-close:hover {
    background: var(--violet-soft);
}

.login-notice a:focus-visible,
.login-notice button:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
}
