/* =========================================================================
   HALAMAN LOGIN & REGISTER (pendaftar)
   Warna dan font dipertahankan: oranye #ff8c00 / #ff5722, teks #374050, font Calibri.
   Layout: kartu dua kolom di laptop, satu kolom di HP; tidak ada tinggi tetap sehingga
   isian tidak terpotong di layar kecil.
   ========================================================================= */

.au-page {
    --o: #ff8c00; --o2: #ff5722; --od: #e67e00;
    --ink: #374050; --mut: #6c757d; --line: #e2e8f0;
    position: relative;
    min-height: calc(100vh - 66px);
    display: flex; align-items: center; justify-content: center;
    padding: clamp(16px, 4vw, 48px) 14px;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 140, 0, .13) 0 160px, transparent 161px),
        radial-gradient(circle at 94% 88%, rgba(13, 110, 253, .09) 0 200px, transparent 201px),
        #f4f6f9;
    font-family: 'Calibri', sans-serif;
    overflow: hidden;
}
.au-card {
    position: relative; z-index: 1;
    width: min(1040px, 100%);
    display: grid; grid-template-columns: 1fr 1.05fr;
    background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(55, 64, 80, .16);
    animation: auNaik .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes auNaik { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Panel kiri ---------- */
.au-side {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    padding: clamp(26px, 3.4vw, 44px);
    color: #fff;
    background: #374050;
}
.au-slides { position: absolute; inset: 0; z-index: -2; }
.au-slides span {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; animation: auSlide 18s infinite; transform: scale(1.06);
}
.au-slides span:nth-child(2) { animation-delay: 6s; }
.au-slides span:nth-child(3) { animation-delay: 12s; }
@keyframes auSlide {
    0% { opacity: 0; transform: scale(1.06); } 6%, 30% { opacity: 1; } 36%, 100% { opacity: 0; transform: scale(1.14); }
}
.au-side::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(160deg, rgba(55, 64, 80, .78) 0%, rgba(55, 64, 80, .62) 45%, rgba(255, 87, 34, .55) 100%);
}
.au-brand { display: flex; align-items: center; gap: 12px; }
.au-brand img { height: 48px; width: auto; background: #fff; border-radius: 12px; padding: 4px 8px; object-fit: contain; }
.au-brand b { display: block; font-size: 1.35rem; line-height: 1; letter-spacing: .5px; }
.au-brand small { font-size: .78rem; font-style: italic; opacity: .85; }
.au-side h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: #fff; }
.au-side p.au-lead { margin: 0; font-size: 1rem; line-height: 1.6; opacity: .92; }
.au-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.au-points li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.au-points i {
    flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; background: rgba(255, 255, 255, .18); font-size: 1.05rem;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* alur pendaftaran (register) */
.au-flow { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: af; display: grid; gap: 0; }
.au-flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: .97rem; counter-increment: af; }
.au-flow li::before {
    content: counter(af); flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .55);
}
.au-flow li:first-child::before { background: var(--o); border-color: var(--o); box-shadow: 0 0 0 6px rgba(255, 140, 0, .3); }
.au-flow li:not(:last-child)::after {
    content: ''; position: absolute; left: 16px; top: 44px; bottom: -9px; width: 2px; background: rgba(255, 255, 255, .35);
}

/* ---------- Panel kanan ---------- */
.au-main { padding: clamp(26px, 4vw, 48px) clamp(20px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.au-mhead { display: none; align-items: center; gap: 12px; margin-bottom: 22px; }
.au-mhead img { height: 44px; width: auto; object-fit: contain; }
.au-mhead b { display: block; font-size: 1.25rem; line-height: 1; color: var(--o); text-transform: uppercase; }
.au-mhead small { font-size: .74rem; font-style: italic; color: var(--mut); }
.au-title { margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); }
.au-sub { margin: 0 0 26px; font-size: .98rem; color: var(--mut); line-height: 1.5; }

.au-field { margin-bottom: 18px; }
.au-field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 700; color: #4b5563; }
.au-field label em { font-style: normal; color: var(--o2); }
.au-input { position: relative; }
.au-input > i.lead {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--o); font-size: 1.1rem; pointer-events: none; transition: transform .25s ease;
}
.au-input input {
    width: 100%; height: 52px; padding: 0 48px 0 46px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: #f8fafc; border: 1.5px solid var(--line); border-radius: 14px;
    outline: none; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.au-input input::placeholder { color: #a0aab8; }
.au-input input:focus { background: #fff; border-color: var(--o); box-shadow: 0 0 0 4px rgba(255, 140, 0, .16); }
.au-input input:focus ~ i.lead, .au-input:focus-within > i.lead { transform: translateY(-50%) scale(1.15); }
.au-input input.is-invalid { border-color: #dc3545; background: #fff7f8; }
.au-input input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, .15); }
.au-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
    color: #8a94a3; font-size: 1.1rem; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.au-eye:hover { background: #eef1f5; color: var(--ink); }
.au-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: .82rem; color: var(--mut); line-height: 1.4; }
.au-hint i { color: var(--o); margin-top: 1px; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.au-row label { margin: 0; }
.au-row a { font-size: .85rem; font-weight: 700; color: var(--o); }
.au-row a:hover { color: var(--od); }

.au-meter { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.au-meter .bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.au-meter .bars i { height: 5px; border-radius: 4px; background: #e9edf2; transition: background .3s ease; }
.au-meter .bars i.on { background: var(--c, #dc3545); }
.au-meter span { min-width: 64px; text-align: right; font-size: .8rem; font-weight: 700; color: var(--c, #98a2b0); }

.au-btn {
    position: relative; width: 100%; height: 54px; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 1.02rem; font-weight: 700; letter-spacing: .4px; color: #fff;
    background: linear-gradient(135deg, var(--o), var(--o2)); background-size: 150% 100%;
    box-shadow: 0 12px 26px rgba(255, 140, 0, .38);
    transition: transform .25s ease, box-shadow .25s ease, background-position .4s ease;
}
.au-btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 32px rgba(230, 126, 0, .45); }
.au-btn:active { transform: translateY(0); }
.au-btn[disabled] { opacity: .85; cursor: wait; transform: none; }
.au-btn .spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: auPutar .7s linear infinite; }
@keyframes auPutar { to { transform: rotate(360deg); } }

.au-alt { margin: 22px 0 0; text-align: center; font-size: .95rem; color: var(--mut); }
.au-alt a { font-weight: 700; color: var(--o); }
.au-alt a:hover { color: var(--od); }
.au-back { display: inline-flex; align-items: center; gap: 6px; margin: 14px auto 0; font-size: .85rem; color: var(--mut); }
.au-back:hover { color: var(--o); }
.au-foot { margin: 18px 0 0; text-align: center; font-size: .78rem; color: #9aa4b2; }

/* ---------- Tablet & HP ---------- */
@media (max-width: 991.98px) {
    .au-card { grid-template-columns: 1fr; max-width: 540px; border-radius: 24px; }
    .au-side { display: none; }
    .au-mhead { display: flex; }
}
@media (max-width: 575.98px) {
    .au-page { padding: 12px 10px 28px; align-items: flex-start; }
    .au-card { border-radius: 22px; box-shadow: 0 18px 44px rgba(55, 64, 80, .14); }
    .au-main { padding: 24px 18px 26px; }
    .au-title { font-size: 1.45rem; }
    .au-sub { margin-bottom: 20px; font-size: .94rem; }
    .au-input input { font-size: 16px; }   /* cegah zoom otomatis di iOS */
}
@media (prefers-reduced-motion: reduce) {
    .au-card, .au-slides span, .au-btn .spin { animation-duration: .01ms !important; }
    .au-slides span:first-child { opacity: 1; }
}
