/* Public auth modal (shared). #authOverlay bumps specificity; .is-open toggles visibility. */
#authOverlay.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#authOverlay.auth-modal-overlay.is-open {
    display: flex !important;
}
.auth-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 440px;
    max-width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}
.auth-modal-overlay .modal-header {
    position: relative;
    padding-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 16px;
    flex-direction: column;
}
.auth-modal-overlay .icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #717171;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: -20px;
}
.auth-modal-overlay .auth-heading {
    font-size: 22px;
    margin: 8px 0;
    color: #222;
    font-weight: 500;
}
.auth-modal-overlay .form-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}
.auth-modal-overlay .form-input:focus {
    outline: none;
    border-color: #222;
}
.auth-modal-overlay .primary-btn {
    background: #1BCA97;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 16px;
}
.auth-modal-overlay .primary-btn:hover {
    background: #12916b;
}
.auth-modal-overlay .help-text {
    font-size: 14px;
    color: #717171;
    margin: 8px 0 0;
}
.auth-modal-overlay .error-message {
    color: #ff385c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#authOverlay .iti__flag-box, #authOverlay .iti__country-name {
    margin-right: 6px;
    color: black;
}
#authOverlay .iti__selected-dial-code{
    display: none;
}
#authOverlay .iti{
    width: 100%;
}
.auth-modal-overlay .auth-form .input-group{
    flex: 1;
    margin-bottom: 16px;
}
.auth-modal-overlay .auth-form .input-group label{
    display: block;
    font-size: 14px;
    color: #222222;
    margin-bottom: 8px;
    font-weight: 500;
}
.auth-modal-overlay .auth-form .input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 8px !important;
    font-size: 14px;
}
.auth-modal-overlay .auth-form .input-group input:focus {
    outline: none;
    border-color: #717171;
}
.auth-modal-overlay .register-view {
    display: none;
}
