/* public/css/login.css */

/* ==== Модалка "Вход по email" ==== */
.login-modal.booking-hidden {
    display: none !important;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.login-modal:not(.booking-hidden) {
    display: flex;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.login-modal__content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.4);
}

.login-modal__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-modal__text {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
}

.login-modal__field {
    margin-bottom: 6px;
}

.login-modal__field input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.login-modal__btn {
    width: 100%;
    margin-top: 4px;
}

.login-modal__close-link {
    margin-top: 8px;
    width: 100%;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

.login-step.login-hidden {
    display: none;
}

.login-modal__btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

.login-modal__spinner {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.login-modal__spinner.booking-hidden {
    display: none;
}

.login-spinner {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 3px solid #d1d5db;
    border-top-color: #1883ff;
    animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.login-policy-alert {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: inherit;
}

.login-policy-alert__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.login-policy-alert__box {
    position: relative;
    width: min(340px, 100%);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.login-policy-alert__title {
    padding: 24px 22px 4px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.login-policy-alert__message {
    padding: 0 24px 22px;
    color: #111827;
    font-size: 16px;
    line-height: 1.32;
    white-space: pre-line;
}

.login-policy-alert__button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    color: #007aff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.login-policy-alert__button:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: -4px;
}
