:root {
    --pink: #ef2f70;
    --pink-hover: #df2563;
    --pink-light: #ff8fb3;
    --pink-border: #ff9cba;
    --page: #fff0f5;
    --white: #ffffff;
    --ink: #101010;
    --muted: #747079;
    --danger-bg: #fff1f4;
    --danger-text: #c91f55;
    --success-bg: #effbf2;
    --success-text: #287d3c;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Poppins", sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

/* =====================================================
   KERANGKA UTAMA
===================================================== */

.auth-shell {
    width: 100%;
    min-height: 100vh;
    padding: 22px;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(1060px, calc(100% - 40px));
    height: 700px;
    min-height: 700px;
    display: grid;
    grid-template-columns: 445px minmax(0, 1fr);
    overflow: hidden;
    background: var(--white);
    border-radius: 0 35px 35px 35px;
    box-shadow: 0 18px 45px rgba(236, 72, 119, 0.06);
}

/* =====================================================
   GAMBAR SEBELAH KIRI
===================================================== */

.auth-visual {
    width: 445px;
    height: 700px;
    min-height: 700px;
    overflow: hidden;
    background: #ffdbe8;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =====================================================
   PANEL FORM SEBELAH KANAN
===================================================== */

.auth-panel {
    min-width: 0;
    height: 700px;
    padding: 18px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--white);
}

.auth-form-wrap {
    position: relative;
    width: min(100%, 450px);
}

/* =====================================================
   TOMBOL KEMBALI
===================================================== */

.back-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--ink);
    text-decoration: none;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.back-home:hover {
    color: var(--pink);
    background: #fff1f6;
}

.back-home svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   JUDUL
===================================================== */

.auth-heading {
    margin-bottom: 12px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 3px;
    color: var(--pink);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
}

.auth-heading p {
    margin: 0;
    color: var(--ink);
    font-size: 10.5px;
    line-height: 1.4;
}

/* =====================================================
   TAB USER DAN ADMIN
===================================================== */

.role-tabs {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1.5px solid var(--pink-border);
    border-radius: 10px;
}

.role-tab {
    min-height: 41px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.role-tab svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
}

.role-tab.active {
    color: var(--white);
    background: var(--pink);
}

/* =====================================================
   NOTIFIKASI
===================================================== */

.form-alert,
.form-success {
    margin: -2px 0 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 9.5px;
    line-height: 1.4;
}

.form-alert {
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid #ffd0dd;
}

.form-success {
    color: var(--success-text);
    background: var(--success-bg);
    border: 1px solid #bde8c7;
}

/* =====================================================
   FORM DAN INPUT
===================================================== */

.form-group {
    margin-bottom: 6px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 9.8px;
    font-weight: 700;
    line-height: 1.3;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--pink);
    pointer-events: none;
    transform: translateY(-50%);
}

.input-wrap input {
    width: 100%;
    height: 37px;
    padding: 0 42px 0 44px;
    color: #222222;
    background: var(--white);
    border: 1.5px solid var(--pink-border);
    border-radius: 9px;
    outline: none;
    font-size: 10.5px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrap input::placeholder {
    color: #aaa5ae;
}

.input-wrap input:focus {
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(239, 47, 112, 0.09);
}

/* =====================================================
   TOMBOL MATA PASSWORD
===================================================== */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #918a94;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 14px;
    height: 14px;
}

/* =====================================================
   CHECKBOX, LUPA PASSWORD, DAN SYARAT
===================================================== */

.form-options {
    margin: 3px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.check-label,
.terms-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9.5px;
}

.check-label input,
.terms-row input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--pink);
}

.forgot-link,
.terms-row a,
.login-note a {
    color: var(--pink);
}

.forgot-link {
    font-size: 11px;
}

.terms-row {
    margin: 8px 0 10px;
}

/* =====================================================
   TOMBOL
===================================================== */

.auth-submit,
.secondary-button {
    width: 100%;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.auth-submit {
    color: var(--white);
    background: var(--pink);
    border: 0;
    box-shadow: 0 9px 23px rgba(239, 47, 112, 0.13);
}

.auth-submit:hover {
    background: var(--pink-hover);
}

.secondary-button {
    color: var(--pink);
    background: var(--white);
    border: 1.5px solid var(--pink-border);
}

.secondary-button:hover {
    background: #fff6f9;
}

/* =====================================================
   PEMISAH DAN CATATAN LOGIN
===================================================== */

.auth-divider {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--muted);
    font-size: 9.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #efd5df;
}

.login-note {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 9.5px;
}

/* =====================================================
   KHUSUS HALAMAN LOGIN
===================================================== */

.login-page .auth-panel {
    padding-top: 30px;
    padding-bottom: 30px;
}

.login-page .auth-heading {
    margin-bottom: 18px;
}

.login-page .role-tabs {
    margin-bottom: 18px;
}

.login-page .form-group {
    margin-bottom: 11px;
}

.login-page .input-wrap input {
    height: 43px;
    font-size: 11.5px;
}

.login-page .auth-submit,
.login-page .secondary-button {
    min-height: 43px;
    font-size: 11.5px;
}

.login-page .auth-divider {
    margin: 18px 0;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) and (min-width: 781px) {
    .auth-card {
        width: min(940px, calc(100% - 24px));
        grid-template-columns: 40% 60%;
    }

    .auth-visual {
        width: 100%;
    }

    .auth-panel {
        padding-right: 38px;
        padding-left: 38px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 780px) {
    .auth-shell {
        padding: 20px 13px;
    }

    .auth-card {
        width: min(100%, 560px);
        height: auto;
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .auth-visual {
        width: 100%;
        height: 245px;
        min-height: 245px;
    }

    .auth-visual img {
        object-position: center 23%;
    }

    .auth-panel,
    .login-page .auth-panel {
        height: auto;
        padding: 38px 24px;
        overflow: visible;
    }

    .back-home {
        top: -16px;
    }

    .auth-heading h1 {
        font-size: 23px;
    }

    .auth-heading p {
        font-size: 12px;
    }

    .role-tab {
        min-height: 49px;
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 11px;
    }

    .input-wrap input,
    .login-page .input-wrap input {
        height: 44px;
        font-size: 12px;
    }

    .auth-submit,
    .secondary-button,
    .login-page .auth-submit,
    .login-page .secondary-button {
        min-height: 44px;
        font-size: 12px;
    }
}

/* =====================================================
   MOBILE KECIL
===================================================== */

@media (max-width: 480px) {
    .auth-panel,
    .login-page .auth-panel {
        padding-right: 19px;
        padding-left: 19px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .forgot-link {
        font-size: 11px;
    }
}
