
/* ==========================================
   XZOTIC — Premium Account Authentication
   Version 2.1
   ========================================== */

.xz-auth {
    --xz-green: #073b2d;
    --xz-gold: #d9c5a0;
    --xz-ink: #251d18;
    --xz-muted: #827b72;
    --xz-border: #e7e3db;

    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 35px 0 60px;
    background: #fff;
    border: 1px solid var(--xz-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 22px 65px rgba(25, 35, 27, .075);
}

.xz-auth *,
.xz-auth *::before,
.xz-auth *::after {
    box-sizing: border-box;
}

/* ==========================================
   LEFT — BRAND PANEL
   ========================================== */

.xz-auth__visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 620px;
    padding: 32px;
    overflow: hidden;
    background: linear-gradient(145deg, #0c4b39, #05271e);
    color: #fff;
}

.xz-auth__eyebrow,
.xz-auth__visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--xz-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.xz-auth__symbol {
    font-size: 25px;
}

.xz-auth__visual-content {
    position: relative;
    z-index: 1;
}

.xz-auth__kicker,
.xz-auth__overline {
    display: block;
    color: var(--xz-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.xz-auth__visual-title {
    max-width: 420px;
    margin: 14px 0 12px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.3px;
}

.xz-auth__visual-copy {
    margin: 0;
    color: #c9dcd2;
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================
   REAL FLOATING WALLET IMAGE
   ========================================== */

.xz-auth__wallet-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 340px;
    margin: 12px auto 0;
}

.xz-auth__wallet-image {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .28));
    transform: rotate(-5deg);
    transition: transform .4s ease;
}

@media (hover: hover) {
    .xz-auth:hover .xz-auth__wallet-image {
        transform: rotate(-2deg) translateY(-6px) scale(1.04);
    }
}

/* ==========================================
   RIGHT — AUTHENTICATION PANEL
   ========================================== */

.xz-auth__main {
    min-width: 0;
    padding: 38px 38px 32px;
}

.xz-auth__intro {
    margin-bottom: 24px;
}

.xz-auth__overline {
    color: #8a7763;
}

.xz-auth__title {
    margin: 10px 0 6px;
    color: var(--xz-ink);
    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.2;
}

.xz-auth__subtitle {
    margin: 0;
    color: var(--xz-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================
   SIGN IN / SIGN UP TABS
   ========================================== */

.xz-auth__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 25px;
    padding: 5px;
    background: #f3f1ed;
    border-radius: 9px;
}

.xz-auth__tab {
    min-height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #77736e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background-color .2s ease,
        box-shadow .2s ease,
        color .2s ease;
}

.xz-auth__tab[aria-selected="true"] {
    background: #fff;
    color: var(--xz-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.xz-auth__tab:focus-visible {
    outline: 2px solid var(--xz-green);
    outline-offset: 2px;
}

.xz-auth__panel[hidden] {
    display: none !important;
}

/* ==========================================
   WOOCOMMERCE FORM RESET
   ========================================== */

.xz-auth__panel .u-column1,
.xz-auth__panel .u-column2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.xz-auth__legacy-heading {
    display: none !important;
}

.xz-auth form.woocommerce-form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.xz-auth form .form-row {
    margin-bottom: 16px;
}

.xz-auth form label {
    color: #302b26;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* ==========================================
   INPUT FIELDS
   ========================================== */

.xz-auth form input.input-text,
.xz-auth form input[type="email"],
.xz-auth form input[type="password"],
.xz-auth form input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #e3e0d9;
    border-radius: 6px;
    background: #fff;
    color: var(--xz-ink);
    font-size: 13px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.xz-auth form input.input-text:focus,
.xz-auth form input[type="email"]:focus,
.xz-auth form input[type="password"]:focus,
.xz-auth form input[type="text"]:focus {
    border-color: #0c6148;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 59, 45, .08);
}

/* ==========================================
   LOGIN / REGISTER BUTTON
   ========================================== */

.xz-auth form button[type="submit"],
.xz-auth form .woocommerce-button[type="submit"] {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--xz-green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.xz-auth form button[type="submit"]:hover,
.xz-auth form .woocommerce-button[type="submit"]:hover {
    background: #0b533f;
    color: #fff;
    transform: translateY(-1px);
}

.xz-auth form button[type="submit"]:focus-visible {
    outline: 2px solid var(--xz-gold);
    outline-offset: 3px;
}

/* ==========================================
   LINKS / PRIVACY TEXT
   ========================================== */

.xz-auth form .woocommerce-privacy-policy-text {
    color: var(--xz-muted);
    font-size: 12px;
    line-height: 1.7;
}

.xz-auth form .woocommerce-privacy-policy-text p {
    margin: 0 0 16px;
}

.xz-auth form a:not(.et-google-login-button):not(.et-facebook-login-button) {
    color: var(--xz-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.xz-auth form a:not(.et-google-login-button):not(.et-facebook-login-button):hover {
    color: #0b634a;
}

/* ==========================================
   XSTORE SOCIAL LOGIN
   ========================================== */

.xz-auth .et-google-login-wrapper,
.xz-auth .et-facebook-login-wrapper {
    width: 100%;
    margin-top: 10px;
}

.xz-auth .et-google-login-button,
.xz-auth .et-facebook-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.xz-auth .et-google-login-button {
    background: #4285f4;
}

.xz-auth .et-facebook-login-button {
    background: #50699d;
}

.xz-auth .et-google-login-button:hover {
    background: #3367d6;
    color: #fff;
}

.xz-auth .et-facebook-login-button:hover {
    background: #405783;
    color: #fff;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1024px) {
    .xz-auth {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    }

    .xz-auth__visual {
        padding: 26px;
    }

    .xz-auth__main {
        padding: 30px 26px;
    }

    .xz-auth__visual-title {
        font-size: clamp(28px, 3.5vw, 38px);
    }

    .xz-auth__wallet-art {
        height: 290px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {
    .xz-auth {
        grid-template-columns: minmax(0, 1fr);
        margin: 20px 0 35px;
        border-radius: 12px;
    }

    .xz-auth__visual {
        min-height: auto;
        padding: 24px;
    }

    .xz-auth__visual-content {
        margin-top: 20px;
    }

    .xz-auth__visual-title {
        max-width: none;
        font-size: 29px;
    }

    .xz-auth__wallet-art {
        height: 220px;
        margin-top: 12px;
    }

    .xz-auth__wallet-image {
        max-width: 100%;
    }

    .xz-auth__visual-footer {
        display: none;
    }

    .xz-auth__main {
        padding: 26px 20px 30px;
    }

    .xz-auth__title {
        font-size: 27px;
    }

    .xz-auth__tabs {
        margin-bottom: 20px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .xz-auth *,
    .xz-auth *::before,
    .xz-auth *::after {
        transition: none !important;
        animation: none !important;
    }
}
