/* public/css/auth.css */

/* =========================================================
   SANTOVATE PARFUM AUTH
   Replace total isi auth.css lama dengan file ini.
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --auth-ink: #191714;
    --auth-ink-soft: #2a2621;
    --auth-muted: #756f66;
    --auth-ivory: #f8f5ee;
    --auth-paper: #fffdf8;
    --auth-cream: #eee7da;
    --auth-gold: #aa8954;
    --auth-gold-deep: #765b35;
    --auth-burgundy: #6e2838;
    --auth-green: #294b3a;
    --auth-line: rgba(56, 48, 38, 0.14);
    --auth-line-strong: rgba(56, 48, 38, 0.23);
    --auth-danger: #8b2635;
    --auth-success: #2f6046;
    --auth-serif: "Cormorant Garamond", Georgia, serif;
    --auth-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --auth-shadow: 0 34px 100px rgba(53, 45, 34, 0.16);
    --auth-card-shadow: 0 24px 65px rgba(53, 45, 34, 0.11);
}

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

html {
    background: var(--auth-ivory);
}

body {
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(170, 137, 84, 0.16), transparent 27%),
        radial-gradient(circle at 92% 10%, rgba(110, 40, 56, 0.10), transparent 28%),
        linear-gradient(135deg, #f8f5ee 0%, #eee7da 100%);
    font-family: var(--auth-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================================
   PAGE + SHELL
   ========================================================= */

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

.auth-shell {
    width: min(100%, 1180px);
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    overflow: hidden;
    border: 1px solid rgba(255, 253, 248, 0.90);
    border-radius: 34px;
    background: rgba(255, 253, 248, 0.84);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
}

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

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

.auth-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(30px, 3.3vw, 46px);
    color: #f8f3e9;
    isolation: isolate;
    background:
        radial-gradient(circle at 85% 16%, rgba(170, 137, 84, 0.21), transparent 30%),
        radial-gradient(circle at 12% 88%, rgba(110, 40, 56, 0.25), transparent 34%),
        linear-gradient(145deg, #191714 0%, #2a2621 54%, #301a20 100%);
}

.auth-visual::before {
    position: absolute;
    inset: 18px;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    pointer-events: none;
}

.auth-visual-pattern {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.08;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.30) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.54) 54%, transparent 88%);
}

.auth-visual-orbit {
    position: absolute;
    z-index: -2;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual-orbit-one {
    top: -190px;
    right: -150px;
    width: 490px;
    height: 490px;
}

.auth-visual-orbit-two {
    right: -240px;
    bottom: -270px;
    width: 650px;
    height: 650px;
}

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

.auth-brand {
    position: relative;
    z-index: 5;
    width: max-content;
    max-width: 100%;
    min-height: 56px;
    padding: 7px 15px 7px 7px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: #f8f3e9;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

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

.auth-brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--auth-paper);
}

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

.auth-brand-copy strong,
.auth-mobile-brand strong {
    display: block;
    font-family: var(--auth-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.10em;
}

.auth-brand-copy small,
.auth-mobile-brand span {
    display: block;
    margin-top: 5px;
    color: rgba(248, 243, 233, 0.62);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* =========================================================
   VISUAL COPY
   ========================================================= */

.auth-visual-content {
    position: relative;
    z-index: 4;
    margin-top: clamp(44px, 5vh, 66px);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d8c39f;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.auth-kicker::before {
    width: 30px;
    height: 1px;
    content: "";
    background: currentColor;
}

.auth-visual-content h1 {
    max-width: 590px;
    margin: 16px 0 13px;
    color: #fffaf0;
    font-family: var(--auth-serif);
    font-size: clamp(40px, 4.4vw, 61px);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.auth-visual-content h1 em {
    display: block;
    color: #d8c39f;
    font-style: normal;
}

.auth-visual-content > p {
    max-width: 545px;
    margin: 0;
    color: rgba(248, 243, 233, 0.68);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.75;
}

/* =========================================================
   PERFUME ART
   ========================================================= */

.auth-perfume-stage {
    position: relative;
    width: min(100%, 520px);
    min-height: 225px;
    margin-top: 20px;
    display: grid;
    place-items: center;
}

.auth-perfume-halo {
    position: absolute;
    width: 310px;
    height: 155px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 137, 84, 0.27), transparent 68%);
    filter: blur(4px);
}

.auth-perfume-bottle {
    position: relative;
    width: 128px;
    height: 150px;
    display: grid;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px 22px 31px 31px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(170, 137, 84, 0.12));
    box-shadow:
        0 30px 55px rgba(0, 0, 0, 0.25),
        inset 0 0 30px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.auth-perfume-bottle::before {
    position: absolute;
    top: -45px;
    left: 39px;
    width: 50px;
    height: 45px;
    content: "";
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(145deg, #171410, #796a53);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.24);
}

.auth-perfume-bottle::after {
    position: absolute;
    inset: 54px 15px auto;
    height: 58px;
    content: "";
    border: 1px solid rgba(83, 65, 43, 0.28);
    background: rgba(255, 250, 239, 0.74);
}

.auth-perfume-bottle span,
.auth-perfume-bottle small {
    position: relative;
    z-index: 2;
    color: #332b22;
    font-family: var(--auth-serif);
    text-align: center;
}

.auth-perfume-bottle span {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.auth-perfume-bottle small {
    margin-top: -2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.20em;
}

.auth-note {
    position: absolute;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(248, 243, 233, 0.75);
    background: rgba(255, 255, 255, 0.07);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
}

.auth-note-one {
    top: 34px;
    left: 12%;
}

.auth-note-two {
    top: 79px;
    right: 7%;
}

.auth-note-three {
    right: 18%;
    bottom: 17px;
}

/* =========================================================
   TRUST LIST
   ========================================================= */

.auth-trust-list {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.auth-trust-list article {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(12px);
}

.auth-trust-list article > span {
    display: block;
    margin-bottom: 8px;
    color: #d8c39f;
    font-family: var(--auth-serif);
    font-size: 20px;
    line-height: 1;
}

.auth-trust-list strong {
    display: block;
    color: #fffaf0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.auth-trust-list small {
    display: block;
    margin-top: 5px;
    color: rgba(248, 243, 233, 0.52);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.5;
}

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

.auth-panel {
    min-width: 0;
    padding: clamp(28px, 3.2vw, 45px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 88% 9%, rgba(170, 137, 84, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 245, 238, 0.96));
}

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

.auth-card {
    width: 100%;
    max-width: 405px;
    padding: 29px;
    border: 1px solid var(--auth-line);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--auth-card-shadow);
}

.auth-shell-register .auth-card {
    max-width: 590px;
}

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

.auth-card-head > span {
    display: block;
    color: var(--auth-gold-deep);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-card-head h2 {
    margin: 8px 0 7px;
    color: var(--auth-ink);
    font-family: var(--auth-serif);
    font-size: 39px;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

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

/* =========================================================
   ALERTS
   ========================================================= */

.auth-alert {
    margin-bottom: 13px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    border: 1px solid;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.5;
}

.auth-alert > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}

.auth-alert p,
.auth-alert strong {
    margin: 0;
}

.auth-alert strong {
    display: block;
    margin-bottom: 2px;
}

.auth-alert-success {
    color: #29543d;
    border-color: #bdd4c4;
    background: #edf5ef;
}

.auth-alert-success > span {
    color: #fff;
    background: var(--auth-success);
}

.auth-alert-error {
    color: #762735;
    border-color: #e0b5bd;
    background: #f9ecee;
}

.auth-alert-error > span {
    color: #fff;
    background: var(--auth-danger);
}

/* =========================================================
   GOOGLE BUTTON + DIVIDER
   ========================================================= */

.auth-google-btn {
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--auth-line-strong);
    border-radius: 999px;
    color: var(--auth-ink);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(53, 45, 34, 0.055);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-google-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(118, 91, 53, 0.44);
    box-shadow: 0 15px 32px rgba(53, 45, 34, 0.09);
}

.auth-google-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
}

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

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

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

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

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

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

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

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.auth-field {
    min-width: 0;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--auth-ink);
    font-size: 10.5px;
    font-weight: 800;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-input {
    position: relative;
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    border: 1px solid var(--auth-line);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(53, 45, 34, 0.035);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-input:focus-within {
    border-color: rgba(118, 91, 53, 0.62);
    box-shadow: 0 0 0 4px rgba(170, 137, 84, 0.13);
}

.auth-input-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--auth-gold-deep);
    background: var(--auth-cream);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

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

.auth-input input::placeholder {
    color: #9a9389;
    font-weight: 500;
}

.auth-toggle-password {
    min-height: 28px;
    flex: 0 0 auto;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    color: var(--auth-gold-deep);
    background: var(--auth-cream);
    font-size: 9.5px;
    font-weight: 800;
}

.auth-toggle-password:hover {
    background: #e3d6c3;
}

.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: 10.5px;
    font-weight: 600;
}

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

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

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

/* =========================================================
   SUBMIT + SWITCH
   ========================================================= */

.auth-submit {
    min-height: 49px;
    margin-top: 2px;
    padding: 0 10px 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--auth-ink);
    border-radius: 999px;
    color: #fffaf0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 29%),
        linear-gradient(135deg, #191714 0%, #3b2d24 100%);
    box-shadow: 0 16px 34px rgba(25, 23, 20, 0.20);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(25, 23, 20, 0.25);
}

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

.auth-submit b {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--auth-ink);
    background: #fffaf0;
    font-size: 15px;
    font-weight: 700;
}

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

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

.auth-footnote {
    max-width: 370px;
    margin: 11px auto 0;
    color: #969087;
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
}

/* =========================================================
   SHORT DESKTOP HEIGHT
   ========================================================= */

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

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

    .auth-visual {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .auth-visual-content {
        margin-top: 32px;
    }

    .auth-visual-content h1 {
        font-size: clamp(35px, 4vw, 50px);
    }

    .auth-perfume-stage {
        min-height: 190px;
        margin-top: 8px;
        transform: scale(0.88);
    }

    .auth-card {
        padding: 24px;
    }

    .auth-shell-register .auth-card {
        padding: 21px;
    }

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

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

/* =========================================================
   TABLET + MOBILE
   ========================================================= */

@media (max-width: 980px) {
    body {
        background:
            radial-gradient(circle at 90% 8%, rgba(170, 137, 84, 0.14), transparent 28%),
            linear-gradient(145deg, #f8f5ee, #eee7da);
    }

    .auth-page {
        display: block;
        padding: 16px;
    }

    .auth-shell,
    .auth-shell-register {
        width: min(100%, 680px);
        min-height: 0;
        margin: 0 auto;
        display: block;
        overflow: visible;
        border-radius: 25px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: calc(100svh - 32px);
        padding: 18px;
        display: block;
        border: 1px solid rgba(255, 253, 248, 0.92);
        border-radius: 25px;
        background:
            radial-gradient(circle at 91% 0%, rgba(170, 137, 84, 0.12), transparent 27%),
            rgba(255, 253, 248, 0.94);
        box-shadow: 0 24px 70px rgba(53, 45, 34, 0.12);
    }

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

    .auth-mobile-brand a {
        flex: 0 0 auto;
    }

    .auth-mobile-brand img {
        width: 45px;
        height: 45px;
        padding: 5px;
        display: block;
        object-fit: contain;
        border: 1px solid var(--auth-line);
        border-radius: 15px;
        background: #fff;
    }

    .auth-mobile-brand strong {
        color: var(--auth-ink);
        font-size: 16px;
    }

    .auth-mobile-brand span {
        color: var(--auth-gold-deep);
        font-size: 8px;
    }

    .auth-card,
    .auth-shell-register .auth-card {
        max-width: 100%;
        padding: 25px;
        border-radius: 22px;
        box-shadow: 0 16px 42px rgba(53, 45, 34, 0.08);
    }

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

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

    .auth-panel {
        min-height: calc(100svh - 20px);
        padding: 14px;
        border-radius: 20px;
    }

    .auth-mobile-brand {
        padding: 3px 2px;
    }

    .auth-card,
    .auth-shell-register .auth-card {
        padding: 20px;
        border-radius: 18px;
    }

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

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

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .auth-input {
        min-height: 48px;
    }

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

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

    .auth-card,
    .auth-shell-register .auth-card {
        padding: 17px;
    }

    .auth-mobile-brand strong {
        font-size: 14px;
    }

    .auth-mobile-brand span {
        letter-spacing: 0.08em;
    }

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

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

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
