/* public/css/auth.css */

/* =========================================================
   LBAGSTORE LOGIN PREMIUM V1
   Clean CSS - replace total, jangan append ke CSS lama
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --auth-green-950: #022c22;
    --auth-green-900: #064e3b;
    --auth-green-800: #065f46;
    --auth-green-700: #047857;
    --auth-green-600: #16a34a;
    --auth-green-500: #22c55e;
    --auth-green-300: #86efac;
    --auth-green-200: #bbf7d0;
    --auth-green-100: #dcfce7;
    --auth-green-50: #ecfdf5;

    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-soft: #94a3b8;
    --auth-line: #e2e8f0;
    --auth-card: #ffffff;

    --auth-shadow: 0 30px 90px rgba(15, 23, 42, .13);
    --auth-soft-shadow: 0 22px 58px rgba(15, 23, 42, .09);
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100svh;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 10% 8%, rgba(34, 197, 94, .11), transparent 27%),
        radial-gradient(circle at 88% 12%, rgba(20, 184, 166, .10), transparent 29%),
        linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   PAGE
   ========================================================= */

.auth-page {
    width: 100%;
    min-height: 100svh;
    padding: clamp(14px, 2vw, 24px);
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(100%, 1140px);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .84fr);
    overflow: hidden;
    border-radius: 36px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .96);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
}

/* =========================================================
   LEFT VISUAL
   ========================================================= */

.auth-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(30px, 3.1vw, 42px);
    color: #ffffff;
    isolation: isolate;
    background:
        linear-gradient(145deg, #022c22 0%, #064e3b 48%, #071a1f 100%);
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: -1;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .13);
}

.auth-visual-noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255, 255, 255, .20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .20) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(135deg, #000 0%, transparent 74%);
}

.auth-visual-glow {
    position: absolute;
    z-index: -2;
    pointer-events: none;
    border-radius: 999px;
}

.auth-visual-glow-one {
    width: 420px;
    height: 420px;
    top: -165px;
    right: -135px;
    background:
        radial-gradient(circle, rgba(34, 197, 94, .30), rgba(34, 197, 94, 0) 68%);
}

.auth-visual-glow-two {
    width: 320px;
    height: 320px;
    left: -165px;
    bottom: 72px;
    background:
        radial-gradient(circle, rgba(45, 212, 191, .18), rgba(45, 212, 191, 0) 68%);
}

.auth-visual-line {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -210px;
    bottom: -235px;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
}

/* =========================================================
   BRAND
   ========================================================= */

.auth-brand {
    position: relative;
    z-index: 3;
    width: max-content;
    max-width: 100%;
    min-height: 58px;
    padding: 8px 15px 8px 8px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .14);
    backdrop-filter: blur(14px);
    transition: .18s ease;
}

.auth-brand:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .14);
}

.auth-brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
}

.auth-brand-logo img {
    width: 31px;
    height: 31px;
    display: block;
    object-fit: contain;
}

.auth-brand-text strong,
.auth-mobile-brand strong {
    display: block;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
}

.auth-brand-text small,
.auth-mobile-brand span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 600;
    color: rgba(255, 255, 255, .68);
}

/* =========================================================
   HERO
   ========================================================= */

.auth-hero {
    position: relative;
    z-index: 3;
    max-width: 590px;
    margin-top: clamp(52px, 6vh, 82px);
}

.auth-kicker {
    width: max-content;
    max-width: 100%;
    min-height: 32px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--auth-green-200);
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-hero h1 {
    max-width: 590px;
    margin: 20px 0 14px;
    color: #ffffff;
    font-size: clamp(39px, 4vw, 56px);
    line-height: 1.03;
    letter-spacing: -.064em;
    font-weight: 800;
}

.auth-hero h1 span {
    display: block;
    color: var(--auth-green-300);
}

.auth-hero p {
    max-width: 545px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

/* =========================================================
   SHOWCASE CARD
   ========================================================= */

.auth-showcase {
    position: relative;
    z-index: 3;
    max-width: 535px;
    margin-top: clamp(28px, 4vh, 42px);
    padding: 18px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .17);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .17);
    backdrop-filter: blur(16px);
}

.auth-showcase-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.auth-showcase-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--auth-green-900);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .8), transparent 36%),
        linear-gradient(145deg, var(--auth-green-200), #ffffff);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .15);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.auth-showcase-head small {
    display: block;
    margin-bottom: 5px;
    color: var(--auth-green-200);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.auth-showcase-head strong {
    display: block;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.26;
    font-weight: 800;
    letter-spacing: -.035em;
}

.auth-showcase-body {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.auth-showcase-body {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.auth-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-chip-row span {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 700;
}
.auth-chip-row {
    margin-top: 14px;
}
.auth-chip-row {
    margin-top: 13px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-chip-row span {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   BENEFIT LIST
   ========================================================= */

.auth-benefit-list {
    position: relative;
    z-index: 3;
    max-width: 535px;
    margin-top: 13px;
    display: grid;
    gap: 9px;
}

.auth-benefit-list article {
    min-width: 0;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .095);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(14px);
}

.auth-benefit-list b {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--auth-green-200);
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 800;
}

.auth-benefit-list strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.auth-benefit-list small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .62);
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 500;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.auth-panel {
    min-width: 0;
    padding: clamp(28px, 3.5vw, 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, .09), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .92));
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}

.auth-mobile-brand img {
    width: 46px;
    height: 46px;
    padding: 6px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--auth-line);
}

.auth-mobile-brand strong {
    color: var(--auth-text);
}

.auth-mobile-brand span {
    color: var(--auth-muted);
}

/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    width: 100%;
    max-width: 368px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .98);
    box-shadow: var(--auth-soft-shadow);
}

.auth-card-head {
    margin-bottom: 19px;
}

.auth-card-head > span {
    display: block;
    color: var(--auth-green-600);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-card-head h2 {
    margin: 8px 0 8px;
    color: var(--auth-text);
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -.056em;
    font-weight: 800;
}

.auth-card-head p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 12.5px;
    line-height: 1.62;
    font-weight: 500;
}

/* =========================================================
   ALERT
   ========================================================= */

.auth-alert {
    margin-bottom: 13px;
    padding: 12px 13px;
    border-radius: 15px;
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 700;
}

.auth-alert.success {
    color: #15803d;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.auth-alert.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* =========================================================
   GOOGLE BUTTON
   ========================================================= */

.auth-google-btn {
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    color: var(--auth-text);
    background: #ffffff;
    border: 1px solid var(--auth-line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    transition: .18s ease;
}

.auth-google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    border-color: #cbd5e1;
}

.auth-google-btn span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
}

.auth-google-btn svg {
    width: 100%;
    height: 100%;
}

.auth-google-btn strong {
    font-size: 12.5px;
    font-weight: 800;
}

/* =========================================================
   FORM
   ========================================================= */

.auth-divider {
    position: relative;
    margin: 18px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--auth-line);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: rgba(255, 255, 255, .97);
    color: var(--auth-muted);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.auth-form {
    display: grid;
    gap: 13px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 800;
}

.auth-input {
    position: relative;
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border-radius: 17px;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
    transition: .18s ease;
}

.auth-input:focus-within {
    border-color: var(--auth-green-300);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.auth-input-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--auth-green-800);
    background: var(--auth-green-100);
    font-size: 13px;
    font-weight: 800;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--auth-text);
    font-size: 12.5px;
    font-weight: 600;
}

.auth-input input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.auth-toggle-password {
    min-height: 30px;
    flex: 0 0 auto;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    color: var(--auth-green-800);
    background: var(--auth-green-100);
    font-size: 11px;
    font-weight: 800;
}

.auth-toggle-password:hover {
    background: var(--auth-green-200);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.auth-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--auth-green-700);
}

.auth-row a {
    color: var(--auth-green-800);
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.auth-row a:hover,
.auth-switch-box a:hover {
    text-decoration: underline;
}

.auth-submit {
    min-height: 50px;
    margin-top: 2px;
    padding: 0 12px 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .24), transparent 28%),
        linear-gradient(135deg, #065f46 0%, #16a34a 100%);
    box-shadow: 0 17px 36px rgba(20, 83, 45, .25);
    transition: .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(20, 83, 45, .30);
}

.auth-submit span {
    font-size: 12.5px;
    font-weight: 800;
}

.auth-submit b {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--auth-green-800);
    background: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.auth-switch-box {
    margin-top: 14px;
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    border-radius: 17px;
    background: #f8fafc;
    border: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 11.5px;
    text-align: center;
}

.auth-switch-box a {
    color: var(--auth-green-800);
    font-weight: 800;
}

/* =========================================================
   HEIGHT SAFETY
   ========================================================= */

@media (min-width: 981px) and (max-height: 760px) {
    .auth-page {
        align-items: flex-start;
    }

    .auth-shell {
        min-height: 0;
    }

    .auth-hero {
        margin-top: 38px;
    }

    .auth-hero h1 {
        font-size: clamp(32px, 3.4vw, 44px);
        margin-bottom: 10px;
    }

    .auth-showcase {
        margin-top: 22px;
        padding: 15px;
    }

    .auth-benefit-list article {
        padding: 10px 12px;
    }

    .auth-card {
        padding: 24px;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    .auth-page {
        padding: 14px;
        align-items: flex-start;
    }

    .auth-shell {
        width: min(100%, 560px);
        min-height: 0;
        display: block;
        border-radius: 28px;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        padding: 24px;
        display: block;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-card {
        max-width: 100%;
        padding: 26px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .auth-page {
        padding: 10px;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-panel {
        padding: 17px;
    }

    .auth-card {
        padding: 21px;
        border-radius: 22px;
    }

    .auth-card-head h2 {
        font-size: 28px;
    }

    .auth-card-head p {
        font-size: 12.5px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .auth-row a {
        white-space: normal;
    }

    .auth-input {
        min-height: 47px;
        border-radius: 15px;
    }

    .auth-google-btn,
    .auth-submit {
        min-height: 47px;
    }
}

@media (max-width: 380px) {
    .auth-panel {
        padding: 14px;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-card-head h2 {
        font-size: 26px;
    }

    .auth-divider span {
        font-size: 10px;
    }

    .auth-toggle-password {
        padding: 0 7px;
        font-size: 10.5px;
    }
}

.auth-shell-register {
    min-height: 690px;
}

.auth-shell-register .auth-card {
    max-width: 388px;
    padding: 24px;
}

.auth-shell-register .auth-form {
    gap: 11px;
}

.auth-shell-register .auth-card-head {
    margin-bottom: 16px;
}

.auth-shell-register .auth-divider {
    margin: 15px 0;
}

.auth-shell-register .auth-input {
    min-height: 46px;
}

.auth-shell-register .auth-google-btn,
.auth-shell-register .auth-submit {
    min-height: 46px;
}

@media (min-width: 981px) and (max-height: 760px) {
    .auth-shell-register .auth-card {
        padding: 21px;
    }

    .auth-shell-register .auth-form {
        gap: 9px;
    }

    .auth-shell-register .auth-field label {
        margin-bottom: 5px;
    }

    .auth-shell-register .auth-input {
        min-height: 44px;
    }
}

@media (max-width: 980px) {
    .auth-shell-register {
        min-height: 0;
    }

    .auth-shell-register .auth-card {
        max-width: 100%;
        padding: 26px;
    }
}