/* Login modal overlay, guest card and header "Войти" entry.
   The modal card itself reuses login-form.css (.login-card, .login-form-input, …); here are only the
   overlay/positioning helpers plus the guest card and header button. Referenced from App.razor. */

/* ---- Login modal overlay (wraps the reused .login-card) ---- */
.login-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.login-modal-backdrop .login-card {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 420px;
}

/* Long unbroken error strings (e.g. exception messages) must wrap inside the card, not overflow it. */
.error-message {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-gray-color, #7C8AA0);
    z-index: 1;
}

.login-modal-sub {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-gray-color, #7C8AA0);
}

/* ---- Guest card (profile page when not signed in) ---- */
.guest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 420px;
    margin: 48px auto;
    padding: 32px 24px;
    background: var(--background-color, #fff);
    border: 1px solid var(--blue-light-color, #E8EEF6);
    border-radius: 16px;
}

.guest-card__icon {
    color: var(--blue-color, #2F80ED);
}

.guest-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark-color, #161E39);
}

.guest-card__sub {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray-color, #7C8AA0);
}

.guest-card__btn {
    margin-top: 8px;
    min-width: 160px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--blue-color, #2F80ED);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.guest-card__btn:hover {
    filter: brightness(1.05);
}

/* ---- Header "Войти" entry (anonymous) ---- */
.header-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    background: var(--blue-color, #2F80ED);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.header-login-button:hover {
    filter: brightness(1.05);
}
