/*
 * Halaman login 2026 (resources/views/auth/auth-page-2026/sign-in.blade.php).
 * Dimuat setelah style.bundle.css; semua class diberi prefix auth26- supaya tidak bentrok dengan Metronic.
 */

.auth26 {
    /* Makanbang (default). Teks putih di atas #0066DD = 5.3:1 */
    --auth26-primary: #0066dd;
    --auth26-primary-hover: #0055b8;
    --auth26-primary-soft: #e8f1fd;
    --auth26-aside-from: #0b3a82;
    --auth26-aside-to: #0066dd;

    --auth26-text: #0f172a;
    --auth26-text-muted: #64748b;
    --auth26-border: #d8dee8;
    --auth26-surface: #ffffff;
    --auth26-bg: #f6f8fb;
    --auth26-danger: #c62828;
    --auth26-radius: 12px;
    --auth26-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);

    margin: 0;
    min-height: 100vh;
    background: var(--auth26-surface);
    color: var(--auth26-text);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.auth26--sayurbang {
    /* #038b0e asli cuma 4.47:1 dengan teks putih; digelapkan sedikit agar lolos AA (tombol & panel) */
    --auth26-primary: #027a0c;
    --auth26-primary-hover: #01660a;
    --auth26-primary-soft: #e7f5e8;
    --auth26-aside-from: #034d0b;
    --auth26-aside-to: #027a0c;
}

/* ---------- Layout ---------- */

.auth26-shell {
    display: flex;
    min-height: 100vh;
}

.auth26-form-side {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    padding: 32px 16px 24px;
}

.auth26-form-wrap {
    flex: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Panel merek: tersembunyi di HP, tampil di atas form untuk tablet, di kanan untuk desktop */
.auth26-aside {
    display: none;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.16), transparent 40%),
        radial-gradient(circle at 10% 95%, rgba(255, 255, 255, 0.10), transparent 45%),
        linear-gradient(150deg, var(--auth26-aside-from) 0%, var(--auth26-aside-to) 100%);
}

/* Grid halus sebagai tekstur, tidak mengganggu keterbacaan */
.auth26-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

@media (min-width: 992px) {
    .auth26-form-side {
        padding: 40px 48px 28px;
    }

    .auth26-aside {
        flex: 1 1 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 48px;
    }
}

/* ---------- Form side ---------- */

.auth26-logo {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 40px;
    border-radius: 6px;
}

.auth26-logo img {
    height: 44px;
    width: auto;
}

.auth26-heading {
    margin-bottom: 28px;
}

.auth26-heading h1 {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--auth26-text);
}

.auth26-heading p {
    margin: 0;
    color: var(--auth26-text-muted);
}

.auth26-field {
    margin-bottom: 20px;
}

.auth26-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth26-text);
}

.auth26-input-wrap {
    position: relative;
}

.auth26-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--auth26-text-muted);
    pointer-events: none;
}

.auth26 .auth26-input {
    height: 48px;
    padding: 0 14px 0 44px;
    font-size: 1rem; /* >= 16px: iOS tidak zoom saat fokus */
    color: var(--auth26-text);
    background-color: var(--auth26-surface);
    border: 1px solid var(--auth26-border);
    border-radius: var(--auth26-radius);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth26 .auth26-input--toggle {
    padding-right: 52px;
}

.auth26 .auth26-input::placeholder {
    color: #94a3b8;
}

.auth26 .auth26-input:hover {
    border-color: #b8c2d1;
}

.auth26 .auth26-input:focus {
    border-color: var(--auth26-primary);
    box-shadow: 0 0 0 4px var(--auth26-primary-soft);
    outline: none;
}

.auth26 .auth26-input.is-invalid {
    border-color: var(--auth26-danger);
    background-image: none;
}

.auth26 .auth26-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.auth26-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--auth26-danger);
}

.auth26-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b45309; /* 5:1 di atas putih */
}

.auth26-hint[hidden] {
    display: none;
}

.auth26-hint svg {
    width: 14px;
    height: 14px;
}

.auth26-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: var(--auth26-radius);
    background: var(--auth26-primary-soft);
    color: var(--auth26-text);
    font-size: 0.9rem;
}

.auth26-alert p {
    margin: 0;
}

.auth26-alert-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--auth26-primary);
}

.auth26-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--auth26-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.auth26-toggle:hover {
    color: var(--auth26-text);
    background-color: #f1f5f9;
}

.auth26-toggle svg {
    width: 20px;
    height: 20px;
}

.auth26-toggle .auth26-eye-off,
.auth26-toggle[aria-pressed="true"] .auth26-eye {
    display: none;
}

.auth26-toggle[aria-pressed="true"] .auth26-eye-off {
    display: block;
}

.auth26-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 0 20px;
    padding-left: 0;
}

.auth26-remember .form-check-input {
    float: none;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.auth26-remember .form-check-input:checked {
    background-color: var(--auth26-primary);
    border-color: var(--auth26-primary);
}

.auth26-remember .form-check-label {
    color: var(--auth26-text-muted);
    cursor: pointer;
    user-select: none;
}

.auth26-submit {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--auth26-radius);
    background-color: var(--auth26-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 16px -6px var(--auth26-primary);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.auth26-submit:hover {
    background-color: var(--auth26-primary-hover);
}

.auth26-submit:active {
    transform: translateY(1px);
}

.auth26-submit:disabled {
    cursor: progress;
    opacity: 0.85;
}

.auth26-submit-progress {
    display: none;
    align-items: center;
    gap: 8px;
}

.auth26-submit.is-loading .auth26-submit-label {
    display: none;
}

.auth26-submit.is-loading .auth26-submit-progress {
    display: inline-flex;
}

.auth26-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--auth26-text-muted);
}

/* Fokus keyboard selalu terlihat */
.auth26 a:focus-visible,
.auth26 button:focus-visible,
.auth26 .form-check-input:focus-visible {
    outline: 3px solid var(--auth26-primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---------- Aside ---------- */

.auth26-aside-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.auth26-eyebrow {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.auth26-aside-title {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #ffffff;
}

.auth26-aside-lead {
    margin: 0 0 28px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95); /* 0.88 cuma 4.48:1 di ujung gradient terang */
}

.auth26-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.auth26-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth26-benefits strong {
    display: block;
    font-weight: 600;
    color: #ffffff;
}

.auth26-benefits span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95); /* 0.82 cuma 4.1:1 */
}

.auth26-benefit-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth26-benefits .auth26-benefit-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* ---------- Ilustrasi (partials/illustration.blade.php) ---------- */

.auth26-aside-inner {
    display: flex;
    flex-direction: column;
}

/* Ilustrasi tampil paling atas sebagai visual utama, teks di bawahnya */
.auth26-figure {
    order: -1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 28px;
}

.auth26-illustration {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.auth26-ill-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Slideshow ilustrasi ---------- */

.auth26-slides {
    position: relative;
    aspect-ratio: 560 / 400; /* sama dengan viewBox semua scene */
}

.auth26-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.auth26-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
}

/* Kartu mengambang hanya bergerak di slide yang terlihat */
.auth26-slide:not(.is-active) .auth26-ill-float {
    animation-play-state: paused;
}

.auth26-slides-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth26-slides-controls[hidden] {
    display: none;
}

.auth26-dots {
    display: flex;
    gap: 2px;
}

.auth26-dot {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.auth26-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.auth26-dot:hover::before {
    background: rgba(255, 255, 255, 0.8);
}

.auth26-dot[aria-current="true"]::before {
    width: 22px;
    background: #ffffff;
}

.auth26-slides-pause {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.auth26-slides-pause:hover {
    background: rgba(255, 255, 255, 0.22);
}

.auth26-slides-pause svg {
    width: 12px;
    height: 12px;
}

.auth26-slides-pause .auth26-icon-play,
.auth26-slides-pause[aria-pressed="true"] .auth26-icon-pause {
    display: none;
}

.auth26-slides-pause[aria-pressed="true"] .auth26-icon-play {
    display: block;
}

/* Outline warna merek tidak terlihat di atas panel merek → pakai putih */
.auth26-aside button:focus-visible {
    outline-color: #ffffff;
}

.auth26-illustration text {
    font-family: "Poppins", system-ui, sans-serif;
}

.auth26-ill-primary {
    fill: var(--auth26-primary);
}

.auth26-ill-primary-dark {
    fill: var(--auth26-primary-hover);
}

.auth26-ill-primary-stroke {
    stroke: var(--auth26-primary);
}

/* Kartu dashboard mengambang pelan; jeda berbeda agar tidak bergerak serempak */
.auth26-ill-float {
    animation: auth26-float 6s ease-in-out infinite;
    transform-box: fill-box;
}

.auth26-ill-float--2 {
    animation-delay: -2s;
}

.auth26-ill-float--3 {
    animation-delay: -4s;
}

@keyframes auth26-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ---------- Motion masuk ---------- */

.auth26-form-wrap,
.auth26-aside-inner {
    animation: auth26-rise 0.4s ease-out both;
}

.auth26-aside-inner {
    animation-delay: 0.08s;
}

@keyframes auth26-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Mobile: aksen merek supaya halaman tidak polos ---------- */

@media (max-width: 991.98px) {
    .auth26 {
        background: linear-gradient(180deg, var(--auth26-primary-soft) 0, #ffffff 240px) no-repeat, #ffffff;
    }

    .auth26-shell {
        border-top: 4px solid var(--auth26-primary);
    }
}

/* Tablet: panel merek ringkas (headline + slideshow) di atas form */
@media (min-width: 768px) and (max-width: 991.98px) {
    .auth26 {
        background: #ffffff;
    }

    .auth26-shell {
        flex-direction: column;
        border-top: 0;
    }

    /* Kolom: panel tidak boleh menyusut (ilustrasi terpotong), form mengisi sisa tinggi */
    .auth26-aside {
        display: flex;
        flex: 0 0 auto;
        justify-content: center;
        order: -1;
        padding: 32px 32px 20px;
    }

    .auth26-aside-inner {
        max-width: 440px;
        align-items: center;
        text-align: center;
    }

    .auth26-figure {
        max-width: 340px;
        margin-bottom: 16px;
    }

    .auth26-eyebrow {
        align-self: center;
        margin-bottom: 10px;
    }

    .auth26-aside-title {
        margin-bottom: 0;
        font-size: 1.5rem;
    }

    .auth26-aside-lead,
    .auth26-benefits {
        display: none;
    }

    .auth26-form-side {
        flex: 1 0 auto;
        padding: 40px 24px 24px;
    }
}

@media (min-width: 1400px) {
    .auth26-aside-title {
        font-size: 2.25rem;
    }

    .auth26-figure {
        max-width: 520px;
    }
}

/*
 * Layar pendek (laptop 1366x768, 1920x1080 scaling 125%): lebar ilustrasi mengikuti sisa tinggi layar.
 * Angka yang dikurangkan dari 100vh = tinggi teks panel + padding + jarak ilustrasi + baris kontrol slideshow (36px);
 * 1.4 = rasio viewBox 560:400.
 */
@media (min-width: 992px) and (max-height: 860px) {
    .auth26-aside {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .auth26-figure {
        max-width: min(480px, calc((100vh - 506px) * 1.4));
        margin-bottom: 20px;
    }

    .auth26-aside-lead {
        margin-bottom: 20px;
    }

    .auth26-benefits {
        gap: 12px;
    }
}

/* Lebih pendek lagi: deskripsi poin manfaat disembunyikan, judul poin tetap tampil */
@media (min-width: 992px) and (max-height: 720px) {
    .auth26-aside {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .auth26-figure {
        max-width: min(480px, calc((100vh - 466px) * 1.4));
        margin-bottom: 16px;
    }

    .auth26-aside-title {
        font-size: 1.75rem;
    }

    .auth26-benefits li {
        align-items: center;
    }

    .auth26-benefits li span:not(.auth26-benefit-icon) {
        display: none;
    }
}

/* Ruang terlalu sempit (mis. jendela browser tidak di-maximize) */
@media (min-width: 992px) and (max-height: 600px) {
    .auth26-figure {
        display: none;
    }
}

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