/* ============================================================
   LOGIN / REGISTER — login.css
   Cyberskins CS2 design · scoped under .cs-auth
   Markup: woodmart-child/woocommerce/myaccount/form-login.php
   Accent: var(--cs-red) · Fonts: Barlow Condensed / Manrope
   ============================================================ */

.cs-auth {
    position: relative;
    background: var(--cs-bg-0, #080A0E);
    padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
    overflow: hidden;
}

/* Red radial glow at top */
.cs-auth::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 760px; height: 460px;
    background: radial-gradient(ellipse at top, rgba(245,34,45,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Scan-line texture */
.cs-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.010) 2px,
        rgba(255,255,255,0.010) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.cs-auth .container { position: relative; z-index: 1; }


/* ── HEAD (compact, About-style) ─────────────────────────────── */
.cs-auth__head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto clamp(34px, 5vw, 52px);
    padding-top: 80px;
}

.cs-auth__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin: 0 0 16px;
}

.cs-auth__title em {
    font-style: normal;
    color: var(--cs-red, #F5222D);
    text-shadow: 0 0 24px rgba(245,34,45,0.45);
}

.cs-auth__sub {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cs-txt2, #8B8F9A);
    margin: 0;
}


/* ── GRID: login | register ──────────────────────────────────── */
.cs-auth__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 460px;
    margin: 0 auto;
}

.cs-auth--has-register .cs-auth__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 920px;
}


/* ── CARD ────────────────────────────────────────────────────── */
.cs-auth__card {
    position: relative;
    background: var(--cs-bg-card, #0D1018);
    border: 1px solid var(--cs-bdr, rgba(255,255,255,0.08));
    padding: clamp(26px, 3.5vw, 40px);
    overflow: hidden;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

/* Red top accent stripe */
.cs-auth__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cs-red, #F5222D) 0%, rgba(245,34,45,0) 80%);
    z-index: 2;
}

/* Corner glow */
.cs-auth__card::after {
    content: '';
    position: absolute;
    top: -45%; right: -30%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(245,34,45,0.13), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cs-auth__noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.012) 2px,
        rgba(255,255,255,0.012) 4px
    );
}

.cs-auth__card > * { position: relative; z-index: 1; }

.cs-auth__card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
}


/* ── FIELDS ──────────────────────────────────────────────────── */
.cs-auth__field { margin: 0 0 18px; }

.cs-auth__field label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--cs-txt3, #8B8F9A);
    margin-bottom: 8px;
}

.cs-auth__field .required {
    color: var(--cs-red, #F5222D);
    border: none;
    text-decoration: none;
}

.cs-auth .cs-auth__form input.input-text,
.cs-auth .cs-auth__form input[type="text"],
.cs-auth .cs-auth__form input[type="email"],
.cs-auth .cs-auth__form input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--cs-bdr2, rgba(255,255,255,0.13)) !important;
    border-radius: 0 !important;
    color: var(--cs-txt, #F0F2F8) !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    outline: none;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}

.cs-auth .cs-auth__form input.input-text::placeholder { color: var(--cs-txt3, #4A4E5A); }

.cs-auth .cs-auth__form input.input-text:focus,
.cs-auth .cs-auth__form input[type="text"]:focus,
.cs-auth .cs-auth__form input[type="email"]:focus,
.cs-auth .cs-auth__form input[type="password"]:focus {
    border-color: rgba(245,34,45,0.55) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: 0 0 0 3px rgba(245,34,45,0.10) !important;
}

/* Autofill — keep the dark look */
.cs-auth input:-webkit-autofill,
.cs-auth input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--cs-txt, #F0F2F8);
    -webkit-box-shadow: 0 0 0 1000px #15171F inset;
    caret-color: var(--cs-txt, #F0F2F8);
}


/* ── SUBMIT ROW: remember + button ───────────────────────────── */
.cs-auth__row-submit { margin: 4px 0 0; }

.cs-auth__remember {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: var(--cs-txt2, #8B8F9A);
    margin-bottom: 18px;
    user-select: none;
}

.cs-auth__remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cs-bdr2, rgba(255,255,255,0.20));
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: background .2s, border-color .2s;
}

.cs-auth__remember input[type="checkbox"]:checked {
    background: var(--cs-red, #F5222D);
    border-color: var(--cs-red, #F5222D);
}

.cs-auth__remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit button — front-page primary button look (full width) */
.cs-auth button.cs-auth__submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 52px !important;
    padding: 0 24px !important;
    font-family: 'Barlow Condensed', 'Rajdhani', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--cs-red, #F5222D), var(--cs-orange, #FF6B00)) !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .15s ease;
}

.cs-auth button.cs-auth__submit::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}

.cs-auth button.cs-auth__submit:hover::after { left: 130%; }

.cs-auth button.cs-auth__submit:hover {
    box-shadow: 0 8px 40px rgba(245,34,45,0.45), 0 0 60px rgba(255,107,0,0.18) !important;
    transform: translateY(-2px);
    color: #fff !important;
    background: linear-gradient(135deg, var(--cs-red, #F5222D), var(--cs-orange, #FF6B00)) !important;
}

.cs-auth button.cs-auth__submit:active { transform: translateY(0); }


/* ── LOST PASSWORD + NOTE ────────────────────────────────────── */
.cs-auth__lost {
    margin: 16px 0 0;
    text-align: center;
}

.cs-auth__lost a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-txt3, #8B8F9A);
    text-decoration: none;
    transition: color .2s;
}

.cs-auth__lost a:hover { color: var(--cs-red, #F5222D); }

.cs-auth__note {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cs-txt2, #8B8F9A);
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--cs-red, #F5222D);
    padding: 12px 14px;
    margin: 0 0 18px;
}


/* ── WOOCOMMERCE NOTICES on the auth page ────────────────────── */
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    list-style: none;
    max-width: 920px;
    margin: 0 auto 22px;
    background: rgba(245,34,45,0.06);
    border-top: 3px solid var(--cs-red, #F5222D);
    color: var(--cs-txt, #F0F2F8);
    border-radius: 0;
    padding: 14px 18px;
    box-sizing: border-box;
}


/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 820px) {
    .cs-auth--has-register .cs-auth__grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}

@media (max-width: 480px) {
    .cs-auth__card { clip-path: none; }
    .cs-auth__submit { clip-path: none; }
}
