/* =========================================================
   VANCE CEYLON — ACCOUNT GLASS + PASSWORD RECOVERY V1
   Account-only visual override. Does not touch shop/checkout.
========================================================= */

/* Account backdrop: soft daylight glass */
#accountModal.vance-account-modal {
    background: rgba(238, 238, 236, .54) !important;
    backdrop-filter: blur(24px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
}

/* Main account glass panel — based on the earlier approved glass look */
#accountModal .account-box.vance-auth-glass {
    background:
        radial-gradient(circle at 88% 6%, rgba(255,255,255,.82), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.68), rgba(245,245,243,.48)) !important;
    border: 1px solid rgba(255,255,255,.74) !important;
    box-shadow:
        0 28px 80px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.96) !important;
    backdrop-filter: blur(34px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(135%) !important;
}

/* Google area: glass frame around the official Google Identity button.
   The official Google button itself is intentionally kept intact for auth safety. */
#accountModal #vanceGoogleInlineWrap {
    position: relative !important;
    width: 100% !important;
    margin: 12px 0 4px !important;
    padding: 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    background: rgba(255,255,255,.34) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 10px 30px rgba(0,0,0,.06) !important;
    backdrop-filter: blur(22px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(130%) !important;
}

#accountModal #vanceGoogleInlineButton {
    width: 100% !important;
    min-height: 46px !important;
}

#accountModal #vanceGoogleInlineButton > div,
#accountModal #vanceGoogleInlineButton iframe {
    border-radius: 13px !important;
    overflow: hidden !important;
}

/* Email fields also keep the same glass family */
#accountModal .vance-email-login .vance-auth-field {
    background: rgba(255,255,255,.48) !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Forgot password */
#accountModal .vance-forgot-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 7px 0 12px;
}

#accountModal .vance-forgot-password-btn {
    appearance: none;
    border: 0;
    padding: 3px 1px;
    background: transparent;
    color: rgba(0,0,0,.68);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

#accountModal .vance-forgot-password-btn:hover,
#accountModal .vance-forgot-password-btn:focus-visible {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#accountModal .vance-forgot-password-btn:disabled {
    opacity: .45;
    cursor: wait;
}

/* =========================================================
   PASSWORD RECOVERY MODAL
========================================================= */
#vancePasswordRecoveryModal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    background: rgba(235,235,232,.58);
    backdrop-filter: blur(26px) saturate(120%);
    -webkit-backdrop-filter: blur(26px) saturate(120%);
}

#vancePasswordRecoveryModal.is-open {
    display: flex;
}

#vancePasswordRecoveryModal .vance-recovery-card {
    position: relative;
    width: min(460px, 100%);
    padding: 30px 28px 26px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.82);
    background:
        radial-gradient(circle at 85% 5%, rgba(255,255,255,.88), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.72), rgba(244,244,241,.50));
    box-shadow:
        0 32px 90px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.98);
    backdrop-filter: blur(36px) saturate(135%);
    -webkit-backdrop-filter: blur(36px) saturate(135%);
    color: #111;
    animation: vanceRecoveryOpen .35s cubic-bezier(.16,.8,.25,1) both;
}

@keyframes vanceRecoveryOpen {
    from { opacity: 0; transform: translateY(16px) scale(.975); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#vancePasswordRecoveryModal .vance-recovery-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.09);
    background: rgba(255,255,255,.50);
    color: #111;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

#vancePasswordRecoveryModal .vance-recovery-brand {
    margin: 0 46px 24px 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .21em;
}

#vancePasswordRecoveryModal .vance-recovery-tagline {
    margin-bottom: 6px;
    color: rgba(0,0,0,.50);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

#vancePasswordRecoveryModal h2 {
    margin: 0 0 8px;
    font-size: clamp(27px, 6vw, 38px);
    line-height: 1.08;
}

#vancePasswordRecoveryModal .vance-recovery-copy {
    margin: 0 0 22px;
    color: rgba(0,0,0,.60);
    line-height: 1.55;
    font-size: 14px;
}

#vancePasswordRecoveryModal label {
    display: block;
    margin: 14px 0 7px;
    color: rgba(0,0,0,.62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

#vancePasswordRecoveryModal input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.12);
    outline: none;
    background: rgba(255,255,255,.50);
    color: #111;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#vancePasswordRecoveryModal input:focus {
    border-color: rgba(0,0,0,.42);
    box-shadow: 0 0 0 3px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.95);
}

#vancePasswordRecoveryModal .vance-recovery-save {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border: 0;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#vancePasswordRecoveryModal .vance-recovery-save:disabled {
    opacity: .55;
    cursor: wait;
}

#vancePasswordRecoveryStatus {
    min-height: 20px;
    margin-top: 12px;
    color: rgba(0,0,0,.62);
    font-size: 13px;
    line-height: 1.45;
}

#vancePasswordRecoveryStatus.is-error { color: #a21616; }
#vancePasswordRecoveryStatus.is-success { color: #176c35; }

@media (max-width: 640px) {
    #accountModal #vanceGoogleInlineWrap {
        border-radius: 16px !important;
        padding: 8px !important;
    }

    #vancePasswordRecoveryModal .vance-recovery-card {
        padding: 27px 21px 23px;
        border-radius: 24px;
    }
}
