/* Auth modal shown on submit for anonymous visitors. Base .modal / .modal-content
   styles come from event_form_base.css. */

/* Override the base modal: Bootstrap's fixed-top navbar sits at z-index 1030, so
   the default 999 overlay rendered the modal *behind* the navbar. Also make the
   overlay scrollable and top-aligned, since the auth form is taller than the
   short invitation-modal the base styles were tuned for. */
#auth-modal {
    z-index: 1100;
    align-items: flex-start;
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
}

.auth-modal-content {
    max-width: 460px;
    width: 100%;
    text-align: left;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e6ec;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    font-weight: 500;
    color: #596b7e;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.auth-tab-btn.active {
    color: #1b4965;
    border-bottom-color: #54b3d6;
}

.auth-tab-btn i {
    margin-right: 6px;
}

.auth-tab-panel {
    margin-bottom: 0.5rem;
}

.auth-tab-panel.hidden {
    display: none;
}

.auth-tab-panel .form-group {
    margin-bottom: 0.75rem;
}

.auth-tab-panel .form-group > label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #1b4965;
}

.auth-tab-panel .form-check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
}

.auth-tab-panel .form-check .auth-field-error {
    flex: 0 0 100%;
}

.auth-tab-panel .form-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
}

.auth-tab-panel .form-check label {
    flex: 1;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    word-break: break-word;
}

.auth-tab-panel .error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 4px;
}

.auth-tab-panel .error:empty,
.auth-nonfield-error:empty {
    display: none;
}

.auth-nonfield-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
