.hostanno-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hostanno-auth-modal--visible {
    visibility: visible;
    opacity: 1;
}

.hostanno-auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 20, 36, 0.72);
    backdrop-filter: blur(2px);
}

.hostanno-auth-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.hostanno-auth-modal__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: none;
    color: #041424;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s ease;
}

.hostanno-auth-modal__close:hover {
    /*background: rgba(0, 52, 89, 0.14);*/
}

.hostanno-auth-modal__form {
    padding: 48px 40px 40px;
}

.hostanno-auth-modal__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
}

.hostanno-auth-modal__tab {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hostanno-auth-modal__tab--active {
    background: #fff;
    color: #003459;
    box-shadow: 0 2px 8px rgba(0, 52, 89, 0.1);
}

.hostanno-auth-modal__panel {
    display: none;
}

.hostanno-auth-modal__panel--active {
    display: block;
}

.hostanno-auth-modal__remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
}

.hostanno-auth-modal__remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #003459;
}

.hostanno-auth-modal__form .inner-title {
    padding-bottom: 28px;
}

.hostanno-auth-modal__form .inner-title h2 {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
    color: #041424;
}

.hostanno-auth-modal__subtitle {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
}

.hostanno-auth-modal__errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}

.hostanno-auth-modal__errors ul {
    margin: 0;
    padding-left: 18px;
}

.hostanno-auth-modal__form form .form-group {
    margin-bottom: 16px;
}

.hostanno-auth-modal__form form input[type="text"],
.hostanno-auth-modal__form form input[type="email"],
.hostanno-auth-modal__form form input[type="password"] {
    width: 100%;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(4, 20, 36, 0.12);
    background: #f8fafc;
    color: #041424;
    font-size: 16px;
    padding: 0 20px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hostanno-auth-modal__form form input:focus {
    border-color: #003459;
    background: #fff;
}

.hostanno-auth-modal__form form .thm-btn {
    width: 100%;
    justify-content: center;
    border: none;
}

.hostanno-auth-modal__form .create-account {
    padding-top: 18px;
}

.hostanno-auth-modal__form .create-account p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

.hostanno-auth-modal__form .create-account a {
    color: #003459;
    font-weight: 600;
    text-decoration: none;
}

.hostanno-auth-modal__form .create-account a:hover {
    text-decoration: underline;
}

.hostanno-auth-modal__status {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
}

.hostanno-auth-modal__status p {
    margin: 0;
}

.hostanno-auth-modal__resend {
    margin-top: 16px;
    text-align: center;
}

.hostanno-auth-modal__resend p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #64748b;
}

.hostanno-auth-modal__resend-btn {
    border: 0;
    background: transparent;
    color: #003459;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

body.hostanno-auth-modal-open {
    overflow: hidden;
}

html.hostanno-auth-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .hostanno-auth-modal__form {
        padding: 40px 24px 28px;
    }

    .hostanno-auth-modal__form .inner-title h2 {
        font-size: 28px;
    }
}
