/*
 * Halaman akun Clay -- masuk, daftar, lupa sandi (LEX-246).
 * Mobile-first: aturan dasar untuk HP, lalu `min-width: 641px` dan `861px`,
 * titik patah yang sama dengan home.css / halaman-konten.css.
 *
 * Dimuat lewat blok `page_css` ketiga template itu saja, SESUDAH phase1..4,
 * gerak.css, kontrol.css, dan footer.css. Semua kelas berawalan `ak-` supaya
 * tidak tersenggol aturan prototipe di phase1..4.
 *
 * - Checkbox "Ingat saya"/setuju TIDAK digayakan di sini: kontrol.css yang
 *   menggambarnya; berkas ini cuma menata letaknya.
 * - Judul: Pengaturan Tampilan memaku `h1 { font-size: ... !important }`.
 *   Judul kartu formulir setengah lebar butuh ukuran sendiri, jadi ikut
 *   `!important` (spesifisitas kelas menang atas `h1`).
 * - Warna tautan: `--brand`, bukan `--brand-deep` -- di situs ini yang kedua
 *   emas dan nyaris tak terbaca di atas krem.
 */

/* ================= Kerangka ================= */
.ak-hal { position: relative; isolation: isolate; overflow: hidden; padding: 6px 0 56px; }
.ak-hal::before,
.ak-hal::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.ak-hal::before { top: -60px; left: -120px; width: 320px; height: 320px; background: var(--lavender-strong); }
.ak-hal::after { right: -140px; bottom: 0; width: 360px; height: 360px; background: var(--peach-strong); opacity: .35; }

.ak-bingkai { width: min(calc(100% - 24px), 1100px); margin-inline: auto; }
.ak-panel { display: grid; overflow: hidden; border-radius: 30px; box-shadow: 0 30px 70px rgba(70, 48, 96, .14), inset 0 -6px 14px rgba(105, 78, 151, .06), inset 0 6px 14px rgba(255, 255, 255, .8); }

/* ================= Sisi formulir ================= */
.ak-isi { display: flex; flex-direction: column; padding: 22px 20px 28px; }
.ak-kembali { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 18px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--bg-soft); box-shadow: 0 6px 14px rgba(83, 60, 101, .1), inset 0 -2px 5px rgba(78, 52, 96, .06), inset 0 2px 5px rgba(255, 255, 255, .9); color: var(--muted); font-size: .8rem; font-weight: 700; transition: transform .32s var(--clay-pegas, ease), color .2s ease; }
.ak-kembali b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lavender); color: var(--ink); font-size: .8rem; }
.ak-kembali:hover { color: var(--ink); }

.ak-hal .section-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ink); font-size: .7rem; letter-spacing: .16em; }
.ak-hal .section-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-deep); }

.ak-hal .ak-judul { margin: 0 0 8px; color: var(--ink); font: 800 1.75rem/1.12 var(--clay-heading-font); font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem) !important; letter-spacing: -.04em; text-wrap: balance; }
.ak-lead { margin: 0 0 22px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.ak-lead a, .ak-catatan a, .ak-pemisah a, .ak-tautan { color: var(--brand); font-weight: 800; }
.ak-lead a:hover, .ak-catatan a:hover, .ak-pemisah a:hover, .ak-tautan:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ================= Formulir ================= */
.ak-form { display: grid; gap: 16px; }
.ak-grid-2 { display: grid; gap: 16px; }
.ak-medan { display: grid; gap: 7px; min-width: 0; }
.ak-medan > label { color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .01em; }
.ak-input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 18px;
  background: color-mix(in srgb, var(--lavender) 38%, var(--surface));
  box-shadow: inset 0 2px 6px rgba(78, 52, 96, .1), inset 0 -2px 4px rgba(255, 255, 255, .85);
  color: var(--ink); font: inherit; font-size: 1rem; outline: 0;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.ak-input::placeholder { color: var(--muted); opacity: .7; }
.ak-input:focus { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), 0 8px 18px rgba(83, 60, 101, .1); }

.ak-sandi { position: relative; }
.ak-sandi .ak-input { padding-right: 56px; }
.ak-mata { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 5px 12px rgba(83, 60, 101, .12), inset 0 -2px 5px rgba(78, 52, 96, .07), inset 0 2px 5px rgba(255, 255, 255, .9); color: var(--muted); transform: translateY(-50%); transition: transform .32s var(--clay-pegas, ease), color .2s ease; }
.ak-mata > span { display: grid; place-items: center; }
.ak-mata .open-close { display: none; }
.ak-mata.is-terbuka .open-eye { display: none; }
.ak-mata.is-terbuka .open-close { display: grid; }
.ak-mata.is-terbuka { color: var(--brand); }
.ak-mata:active { transform: translateY(-50%) scale(.9); }

.ak-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .95); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 24px rgba(83, 60, 101, .12), inset 0 -4px 8px rgba(78, 52, 96, .07), inset 0 4px 8px rgba(255, 255, 255, .9); color: var(--ink); font-weight: 800; transition: transform .32s var(--clay-pegas, ease), box-shadow .3s ease; }
.ak-google:hover { color: var(--ink); }
.ak-google svg { flex: 0 0 auto; transition: transform .32s var(--clay-pegas, ease); }
.ak-google:active { transform: scale(.98); }

.ak-pemisah { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--muted); font-size: .8rem; text-align: center; }
.ak-pemisah::before, .ak-pemisah::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 12%, transparent); }

.ak-baris { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ak-tautan { font-size: .86rem; }
/* Hanya tata letak; kotak centangnya digambar kontrol.css. */
.ak-centang { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
.ak-centang input { flex: 0 0 auto; margin: 0; }
.ak-centang--setuju { align-items: flex-start; }
.ak-centang--setuju input { margin-top: 1px; }

.ak-kirim { width: 100%; min-height: 56px; margin-top: 4px; }
.ak-catatan { margin: 4px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---- Kotak pesan (galat / peringatan / berhasil) ---- */
.ak-pesan-daftar { display: grid; gap: 10px; }
.ak-pesan { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 20px; background: var(--pink); box-shadow: 0 10px 22px rgba(160, 60, 90, .12), inset 0 -3px 7px rgba(150, 50, 80, .08), inset 0 3px 7px rgba(255, 255, 255, .75); color: #6a2340; font-size: .9rem; font-weight: 600; line-height: 1.5; animation: ak-muncul .4s var(--clay-pegas, ease) both; }
.ak-pesan p { margin: 0; }
.ak-pesan p + p { margin-top: 4px; }
.ak-pesan > div { min-width: 0; }
.ak-pesan__titik { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #d64575; box-shadow: 0 0 0 4px rgba(214, 69, 117, .18); }
.ak-pesan__tutup { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); color: inherit; font-size: 1.1rem; line-height: 1; }
.ak-pesan--warning { background: var(--yellow); box-shadow: 0 10px 22px rgba(166, 126, 30, .14), inset 0 -3px 7px rgba(153, 111, 18, .09), inset 0 3px 7px rgba(255, 255, 255, .75); color: #5d4510; }
.ak-pesan--warning .ak-pesan__titik { background: #c28a12; box-shadow: 0 0 0 4px rgba(194, 138, 18, .2); }
.ak-pesan--success { background: var(--mint); box-shadow: 0 10px 22px rgba(57, 136, 97, .14), inset 0 -3px 7px rgba(43, 119, 78, .09), inset 0 3px 7px rgba(255, 255, 255, .75); color: #1f5a3c; }
.ak-pesan--success .ak-pesan__titik { background: #2f9a65; box-shadow: 0 0 0 4px rgba(47, 154, 101, .2); }
@keyframes ak-muncul { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ================= Sisi gambar ================= */
/* HP: pita pendek DI ATAS formulir (order -1), cukup untuk memberi rasa
   tanpa mendorong formulir jauh ke bawah. Layar lebar: kolom kanan penuh. */
.ak-visual { position: relative; order: -1; isolation: isolate; display: flex; align-items: flex-end; min-height: 150px; overflow: hidden; padding: 18px 20px; background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 100%); box-shadow: inset 0 -10px 22px rgba(105, 78, 151, .12), inset 0 10px 22px rgba(255, 255, 255, .55); }
.ak-visual::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 70%); }
.ak-visual__seni { position: absolute; z-index: -1; right: -18px; bottom: -14px; width: 190px; max-width: 55%; filter: drop-shadow(0 18px 24px rgba(70, 48, 96, .2)); animation: clay-melayang 7s ease-in-out infinite; }
.ak-visual__teks { position: relative; display: grid; gap: 2px; max-width: 62%; }
.ak-visual__kicker { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ak-visual__judul { margin: 0; color: var(--ink); font: 800 1.3rem/1.1 var(--clay-heading-font); letter-spacing: -.04em; }
.ak-visual__chip { display: none; }
.ak-gelembung { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 22px rgba(83, 60, 101, .16), inset 0 -3px 7px rgba(78, 52, 96, .1), inset 0 3px 7px rgba(255, 255, 255, .9); animation: clay-melayang 6s ease-in-out infinite; }
.ak-gelembung img { width: 28px; height: 28px; }
.ak-gelembung--1 { top: 16px; left: 20px; animation-delay: -1s; }
.ak-gelembung--2 { top: 22px; left: 76px; width: 38px; height: 38px; border-radius: 14px; background: var(--mint); animation-delay: -3s; }
.ak-gelembung--2 img { width: 24px; height: 24px; }
.ak-gelembung--3 { top: 12px; right: 44%; width: 34px; height: 34px; border-radius: 12px; background: var(--yellow); animation-delay: -4.5s; }
.ak-gelembung--3 img { width: 20px; height: 20px; }

/* ================= ≥641px (tablet) ================= */
@media (min-width: 641px) {
  .ak-hal { padding: 18px 0 80px; }
  .ak-bingkai { width: min(calc(100% - 48px), 1100px); }
  .ak-panel { max-width: 620px; margin-inline: auto; border-radius: 36px; }
  .ak-isi { padding: 34px 40px 40px; }
  .ak-grid-2 { grid-template-columns: 1fr 1fr; }
  .ak-visual { min-height: 190px; padding: 24px 32px; }
  .ak-visual__seni { width: 250px; }
  .ak-visual__judul { font-size: 1.6rem; }
  .ak-gelembung--1 { top: 22px; left: 32px; }
  .ak-gelembung--2 { top: 30px; left: 92px; }
}

/* ================= ≥861px (desktop) ================= */
@media (min-width: 861px) {
  .ak-hal { padding: 26px 0 96px; }
  .ak-hal::before { width: 460px; height: 460px; }
  .ak-panel { max-width: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 620px; }
  .ak-panel--ringkas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 540px; }
  .ak-isi { justify-content: center; padding: 48px 56px 52px; }
  .ak-visual { order: 0; align-items: flex-start; margin: 14px; padding: 40px 40px 0; border-radius: 28px; min-height: 0; }
  .ak-visual__teks { max-width: none; gap: 8px; margin-top: 64px; }
  .ak-visual__kicker { font-size: .72rem; }
  .ak-visual__judul { font-size: clamp(2rem, 1.2rem + 1.8vw, 2.9rem); line-height: 1.02; }
  .ak-visual__chip { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
  .ak-visual__chip li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; background: rgba(255, 253, 249, .82); box-shadow: 0 8px 16px rgba(83, 60, 101, .1), inset 0 -2px 5px rgba(78, 52, 96, .06); color: var(--ink); font-size: .8rem; font-weight: 800; transition: transform .32s var(--clay-pegas, ease); }
  .ak-visual__chip img { width: 24px; height: 24px; }
  .ak-visual__seni { right: -30px; bottom: -24px; width: 96%; max-width: 500px; }
  .ak-gelembung { width: 58px; height: 58px; border-radius: 20px; }
  .ak-gelembung img { width: 36px; height: 36px; }
  .ak-gelembung--1 { top: auto; bottom: 46%; left: 34px; }
  .ak-gelembung--2 { top: 34px; left: auto; right: 40px; width: 50px; height: 50px; border-radius: 18px; }
  .ak-gelembung--3 { top: auto; right: auto; bottom: 22%; left: 46%; width: 44px; height: 44px; border-radius: 16px; }
  .ak-gelembung--3 img { width: 26px; height: 26px; }
}

/* ================= Gerak ================= */
@media (hover: hover) and (pointer: fine) {
  .ak-kembali:hover { transform: translateX(-3px); }
  .ak-kembali:hover b { animation: clay-goyang .6s ease; }
  .ak-google:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--clay-angkat); }
  .ak-google:hover svg { animation: clay-goyang .6s ease; }
  .ak-mata:hover { transform: translateY(-50%) rotate(-8deg) scale(1.06); color: var(--ink); }
  .ak-visual__chip li:hover { transform: translateY(-3px) scale(1.04); }
  .ak-tautan:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  .ak-visual__seni, .ak-gelembung { animation: none; }
}
