/* ==========================================================================
   Antigravity Core — Unified Sitewide Auth Modal (Boutique Soul)
   Extracted from template-parts/modal-auth.php for browser & CDN caching
   ========================================================================== */

.ag-auth-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(18, 17, 15, 0.68) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px !important;
    box-sizing: border-box !important;
    animation: agModalFadeIn 0.2s ease-out;
}
.ag-auth-modal-overlay.is-hidden {
    display: none;
}
@keyframes agModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ag-auth-modal-dialog {
    background: #ffffff !important;
    border: 1px solid rgba(215, 99, 20, 0.18) !important;
    border-radius: 12px !important;
    max-width: 440px !important;
    width: 100% !important;
    max-height: calc(100vh - 32px) !important;
    overflow-y: auto !important;
    padding: 26px 30px !important;
    position: relative !important;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif !important;
}
.ag-auth-modal-dialog.ag-tg-dialog {
    max-width: 400px !important;
    padding: 28px 24px !important;
}
.ag-auth-modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D76314, transparent);
    border-radius: 0 0 2px 2px;
}
.ag-auth-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: none !important;
    border: none !important;
    font-size: 26px !important;
    line-height: 1 !important;
    color: #8c827a !important;
    cursor: pointer !important;
    padding: 4px !important;
    transition: color 0.2s ease !important;
}
.ag-auth-modal-close:hover {
    color: #D76314 !important;
}
.ag-auth-modal-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.ag-auth-modal-title {
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1c1a17 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.25 !important;
}
.ag-auth-modal-sub {
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif !important;
    font-size: 14px !important;
    color: #55504a !important;
    line-height: 1.4 !important;
    margin: 0 0 14px 0 !important;
}
.ag-tg-modal-title {
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}
.ag-tg-modal-sub {
    font-size: 13px;
    color: #66605b;
    margin: 0 0 18px 0;
    line-height: 1.4;
}
.ag-tg-modal-container {
    display: flex;
    justify-content: center;
    min-height: 48px;
}
.ag-auth-honeypot {
    display: none !important;
}
.ag-auth-modal-socials {
    display: flex !important;
    gap: 10px !important;
    margin: 0 0 12px 0 !important;
    width: 100% !important;
}
.ag-auth-modal-dialog .ag-btn-social-luxury,
a.ag-btn-social-luxury,
button.ag-btn-social-luxury {
    flex: 1 1 0% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2b2d31 !important;
    border: 1.5px solid rgba(196, 164, 132, 0.4) !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 0 12px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}
.ag-auth-modal-dialog .ag-btn-social-luxury:hover,
a.ag-btn-social-luxury:hover,
button.ag-btn-social-luxury:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #D76314 !important;
    color: #D76314 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(215, 99, 20, 0.18) !important;
}
.ag-auth-modal-dialog .ag-btn-social-luxury svg,
.ag-btn-social-luxury svg {
    flex-shrink: 0 !important;
    transition: transform 0.25s ease !important;
}
.ag-auth-modal-dialog .ag-btn-social-luxury.is-google:hover svg,
.ag-btn-social-luxury.is-google:hover svg {
    transform: scale(1.08) !important;
}
.ag-auth-modal-dialog .ag-btn-social-luxury.is-telegram svg path,
.ag-btn-social-luxury.is-telegram svg path {
    fill: #2b2d31 !important;
    transition: fill 0.25s ease !important;
}
.ag-auth-modal-dialog .ag-btn-social-luxury.is-telegram:hover svg path,
.ag-btn-social-luxury.is-telegram:hover svg path {
    fill: #D76314 !important;
}
.ag-auth-modal-divider {
    position: relative;
    text-align: center;
    margin: 10px 0 12px 0;
}
.ag-auth-modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(196, 164, 132, 0.28);
}
.ag-auth-modal-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c827a;
    font-weight: 500;
}
.ag-auth-input-group {
    margin-bottom: 8px;
    width: 100%;
}
.ag-auth-modal-input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border: 1.5px solid rgba(196, 164, 132, 0.35) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif !important;
    background: #faf9f6 !important;
    color: #1a1a1a !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}
.ag-auth-modal-input:focus {
    outline: none !important;
    border-color: #D76314 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(215, 99, 20, 0.12) !important;
}
.ag-pass-wrap {
    position: relative;
}
.ag-auth-modal-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #8c827a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-auth-modal-eye:hover {
    color: #D76314;
}
.ag-auth-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 12px 0;
    font-size: 13px;
}
.ag-auth-modal-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #55504a;
    cursor: pointer;
    font-size: 13px;
}
.ag-auth-modal-remember input {
    accent-color: #D76314;
    width: 14px;
    height: 14px;
    margin: 0;
}
.ag-auth-modal-lost {
    color: #D76314;
    text-decoration: none;
    font-size: 13px;
}
.ag-auth-modal-lost:hover {
    text-decoration: underline;
}
.ag-auth-modal-submit {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    background: var(--ag-brand-orange, #D76314) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(215, 99, 20, 0.25) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 24px !important;
}
.ag-auth-modal-submit:hover {
    background: #c0540d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(215, 99, 20, 0.35) !important;
}
.ag-auth-modal-dialog input:-webkit-autofill,
.ag-auth-modal-dialog input:-webkit-autofill:hover,
.ag-auth-modal-dialog input:-webkit-autofill:focus,
.ag-auth-modal-dialog input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #faf9f6 inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
.ag-auth-modal-switch {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #7a736c;
}
.ag-auth-modal-switch a {
    color: #D76314;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
    cursor: pointer;
}
.ag-auth-modal-trust {
    margin: 14px 0 0 0 !important;
    font-size: 12px !important;
    color: #888888 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
.ag-auth-modal-alert {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}
.ag-auth-pane-hidden {
    display: none;
}
@media (max-width: 480px) {
    .ag-auth-modal-dialog {
        padding: 24px 20px !important;
    }
    .ag-auth-modal-title {
        font-size: 21px !important;
    }
}
