:root {
    --accent: #ff69b4; /* aksen utama (hot pink) */
    --accent-600: #e356a1; /* hover */
    --accent-700: #cc4c91; /* active */
    --ink: #221b22;
    --muted: #6b626b;
    --card: #ffffff;
    --cream: #fff6fa; /* nuansa krem lembut */
    --line: #f5d5e5;
    --error: #c62828;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
        Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--ink);
    background: radial-gradient(
            1200px 600px at 10% -10%,
            #ffeaf5 0%,
            transparent 60%
        ),
        radial-gradient(900px 500px at 110% 10%, #ffe1f0 0%, transparent 55%),
        linear-gradient(180deg, var(--cream), #fff);
    /* HAPUS display:grid; place-items:center; dari versi sebelumnya */
}

/* Pusatkan di sini */
.auth-wrapper {
    width: 100%;
    /* fallback + modern viewport units */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: color-mix(in oklab, var(--card) 85%, #fff0 15%);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.15),
        0 6px 12px rgba(17, 12, 17, 0.06);
    padding: 24px 22px;
    backdrop-filter: saturate(120%) blur(6px);
}

/* header */
.auth-header {
    text-align: center;
    margin-bottom: 14px;
}
.brand-dot {
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 35%, #fff 0 30%, transparent 31%),
        var(--accent);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.35),
        inset 0 -3px 8px rgba(0, 0, 0, 0.06);
}
.auth-header h1 {
    margin: 6px 0 4px;
    font-size: 1.6rem;
    letter-spacing: 0.2px;
}
.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* form */
.auth-form { margin-top: 16px; }
.field { display:block; margin:12px 0; }
.field-label { display:block; font-size:.9rem; color:var(--muted); margin:0 0 6px 2px; }
.field {
    display: block;
    margin: 12px 0;
}
.field-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 6px 2px;
}
/* INPUTS (username + password) */
.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    padding: 12px 13px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    outline: none;
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
}
/* placeholder & states — scoped ke field inputs (bukan checkbox) */
.field input::placeholder { color: #b7aeb7; }
.field input[type="text"]:focus,
.field input[type="password"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, #fff);
}
.field input[type="text"]:active,
.field input[type="password"]:active { transform: translateY(0.5px); }
input::placeholder {
    color: #b7aeb7;
}
input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, #fff);
}
input:active {
    transform: translateY(0.5px);
}

/* remember */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 2px 4px;
    color: #4e474e;
    font-size: 0.95rem;
}
.remember input[type="checkbox"] {
    accent-color: var(--accent);
}

/* button */
.btn-primary {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.05s ease, filter 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.35);
}
.btn-primary:hover {
    filter: brightness(1.02);
}
.btn-primary:active {
    transform: translateY(1px);
    background: linear-gradient(180deg, var(--accent-600), var(--accent-700));
}

/* errors */
.alert-error {
    border: 1.5px solid color-mix(in oklab, var(--error) 55%, #fff);
    background: color-mix(in oklab, var(--error) 10%, #fff);
    color: var(--error);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0 6px;
}
.alert-error ul {
    margin: 6px 0 0 18px;
}

/* footer */
.auth-footer {
    text-align: center;
    margin-top: 14px;
    color: var(--muted);
}

/* small screens niceties */
@media (max-width: 380px) {
    .auth-card {
        padding: 20px 16px;
    }
}
