/* ==========================================================
   DanaFy — Auth pages (daftar / log masuk), based on mokup-daftar.png
   & mokup-login.png. Loaded after style.css.
   ========================================================== */
.auth2 {
    --g-900: #0b4d2c;
    --g-800: #0f6b3a;
    --g-700: #138a47;
    --g-600: #16a34a;
    --g-100: #e3f5e9;
    --g-50: #f1faf4;
    --ink: #0b1f17;
    min-height: 100vh; min-height: 100dvh;
    background:
        radial-gradient(900px 600px at 105% -10%, rgba(22,163,74,0.55), transparent 60%),
        radial-gradient(700px 500px at 110% 110%, rgba(22,163,74,0.35), transparent 60%),
        radial-gradient(600px 400px at -10% 110%, rgba(22,163,74,0.30), transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f3faf5 45%, #e6f5ea 100%);
    color: var(--ink);
    overflow-x: hidden;
}
.auth2-wrap {
    max-width: 1320px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
    gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center; padding: 1rem 2rem;
}

/* ---------- Brand ---------- */
.auth2-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.auth2-logo img { height: 52px; width: auto; }
.auth2-logo span { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.auth2-logo span b { color: var(--g-600); font-weight: 800; }

/* ---------- Left showcase ---------- */
.auth2-show { position: relative; min-height: 640px; padding: 0.5rem 0 0 1rem; }
.auth2-show-text { position: relative; z-index: 2; max-width: 440px; }
.auth2-rule { width: 64px; height: 4px; border-radius: 4px; background: var(--g-600); margin: 1.5rem 0 1.4rem; }
.auth2-title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.auth2-title em { font-style: normal; color: var(--g-700); display: block; }
.auth2-sub { max-width: 400px; font-size: clamp(1.05rem, 1.4vw, 1.45rem); color: #1e3a2c; margin: 0.6rem 0 1.4rem; line-height: 1.35; }
.auth2-feats { list-style: none; display: grid; gap: 0.95rem; }
.auth2-feats li { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; line-height: 1.3; color: #1d2b24; }
.auth2-feats li b { font-weight: 800; color: var(--ink); }
.auth2-feats .ic {
    width: 62px; height: 62px; flex-shrink: 0; border-radius: 50%;
    background: var(--g-100); color: var(--g-800);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.55);
}
.auth2-feats .ic svg { width: 28px; height: 28px; }
.auth2-callout {
    display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.75rem;
    background: rgba(241, 250, 244, 0.92); backdrop-filter: blur(6px);
    border-radius: 18px; padding: 1rem 1.4rem; font-size: 1.05rem; color: #1d2b24;
    box-shadow: 0 10px 30px -12px rgba(11, 77, 44, 0.25);
}
.auth2-callout svg { width: 44px; height: 44px; color: var(--g-700); flex-shrink: 0; }
.auth2-hero {
    position: absolute; z-index: 1; right: 0; bottom: 0; top: -1rem;
    width: min(52%, 440px); display: flex; align-items: flex-end; pointer-events: none;
}
.auth2-hero picture { display: block; width: 100%; }
.auth2-hero img { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom right; }

/* ---------- Card ---------- */
.auth2-card {
    position: relative; z-index: 3;
    background: #fff; border-radius: 26px;
    box-shadow: 0 30px 60px -24px rgba(11, 77, 44, 0.35), 0 2px 6px rgba(11, 77, 44, 0.05);
    padding: 1.9rem 2.5rem 1.6rem;
}
.auth2-card h1 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; color: var(--ink); line-height: 1.1; }
.auth2-card .lead { color: #4b5d54; font-size: 1.1rem; margin: 0.4rem 0 1.1rem; }
.auth2-card.center { text-align: center; padding-top: 3rem; }
.auth2-card.center .auth2-logo { margin-bottom: 1.75rem; }
.auth2-card.center .lead { margin-bottom: 2.25rem; }

/* Register: icon tile on the left of each field */
.f-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 1.25rem; align-items: end; margin-bottom: 0.7rem; }
.f-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--g-50); color: var(--g-800); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.f-ic svg { width: 26px; height: 26px; }
.f-label { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.35rem; text-align: left; }
.f-input {
    width: 100%; height: 48px; padding: 0 1rem;
    border: 1.5px solid #dfe6e2; border-radius: 10px; background: #fff;
    font-size: 1rem; color: var(--ink); font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.f-input::placeholder { color: #9aa8a1; }
.f-input:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14); }
.f-hint { display: block; margin-top: 0.35rem; font-size: 0.9rem; color: #2a3a32; overflow-wrap: anywhere; }
.f-hint b { color: var(--g-700); font-weight: 600; }
.f-pass { position: relative; }
.f-pass .f-input { padding-right: 3.25rem; }
.f-eye { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; background: none; color: #33463d; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.f-eye:hover, .f-eye.is-on { background: var(--g-50); color: var(--g-700); }
.f-eye svg { width: 22px; height: 22px; }
.f-phone { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0.6rem; }
.f-cc { position: relative; }
.f-cc select { appearance: none; -webkit-appearance: none; padding-left: 3.1rem; padding-right: 2rem; cursor: pointer; font-weight: 600; }
.f-cc .flag { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 30px; height: 20px; border-radius: 3px; overflow: hidden; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.f-cc::after { content: ''; position: absolute; right: 0.9rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid #33463d; border-bottom: 2px solid #33463d; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* Login: icon cell inside the input */
.f-group { margin-bottom: 1.25rem; text-align: left; }
.f-box { display: flex; align-items: stretch; height: 66px; border: 1.5px solid #dfe6e2; border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.f-box:focus-within { border-color: var(--g-600); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14); }
.f-box .cell { width: 72px; flex-shrink: 0; background: var(--g-50); color: var(--g-800); display: flex; align-items: center; justify-content: center; border-right: 1px solid #e7efe9; }
.f-box .cell svg { width: 28px; height: 28px; }
.f-box input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 1.25rem; font-size: 1.05rem; font-family: inherit; color: var(--ink); background: transparent; }
.f-box input::placeholder { color: #9aa8a1; }
.f-box .f-eye { position: static; transform: none; align-self: center; margin-right: 0.75rem; }

.free-box { display: flex; gap: 1.1rem; align-items: center; background: var(--g-50); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 1.1rem 0 1rem; text-align: left; }
.free-box svg { width: 48px; height: 48px; color: var(--g-700); flex-shrink: 0; }
.free-box strong { display: block; color: var(--g-700); font-size: 1.1rem; font-weight: 800; }
.free-box p { font-size: 0.92rem; color: #3b4d44; margin-top: 0.15rem; line-height: 1.45; }

.f-agree { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; color: #22322a; margin-bottom: 1.25rem; cursor: pointer; text-align: left; }
.f-agree input { width: 22px; height: 22px; accent-color: var(--g-700); flex-shrink: 0; }
.f-agree a { color: var(--g-700); }

.btn-auth {
    width: 100%; height: 64px; border: none; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
    background: linear-gradient(180deg, #179a4b 0%, #0f7a3b 100%);
    color: #fff; font-size: 1.3rem; font-weight: 700; font-family: inherit;
    box-shadow: 0 14px 28px -14px rgba(15, 122, 59, 0.75);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-auth:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-auth svg { width: 26px; height: 26px; }

.auth2-or { display: flex; align-items: center; gap: 1.5rem; color: #6b7c74; margin: 1.6rem 0 1.4rem; font-size: 0.95rem; }
.auth2-or::before, .auth2-or::after { content: ''; flex: 1; height: 1px; background: #dfe6e2; }
.auth2-foot { text-align: center; font-size: 1.05rem; color: #22322a; margin-top: 1.4rem; }
.auth2-foot a { color: var(--g-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth2-card.center .auth2-foot { font-size: 1.15rem; margin-top: 0; }
.auth2-card.center .auth2-foot a { font-weight: 800; }

.auth2-alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; font-size: 0.92rem; margin-bottom: 1.25rem; text-align: left; }
.auth2-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth2-alert a { color: inherit; font-weight: 700; }

/* Login: kad lebih sempit supaya ada ruang antara gambar dan kad */
.page-login .auth2-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .auth2-wrap, .page-login .auth2-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
    .auth2-hero { width: 46%; right: 0; }
    .auth2-feats li { font-size: 0.98rem; }
    .auth2-feats .ic { width: 54px; height: 54px; }
}
@media (max-width: 900px) {
    .auth2-wrap, .page-login .auth2-wrap { grid-template-columns: minmax(0, 1fr); max-width: 640px; padding: 1.25rem 1rem 2rem; gap: 1.25rem; align-items: start; }
    .auth2-show { min-height: 0; padding: 0; display: contents; }
    .auth2-show-text { display: contents; }
    .auth2-top { order: 1; display: flex; align-items: center; justify-content: space-between; }
    .auth2-top .auth2-logo img { height: 40px; }
    .auth2-top .auth2-logo span { font-size: 1.8rem; }
    .auth2-intro { order: 2; }
    .auth2-rule { display: none; }
    .auth2-title { font-size: 2rem; }
    .auth2-title em { display: inline; }
    .auth2-sub { font-size: 1rem; margin-bottom: 0; }
    .auth2-card { order: 3; }
    .auth2-feats { order: 4; background: rgba(255,255,255,0.7); border-radius: 20px; padding: 1.1rem; gap: 0.75rem; }
    .auth2-feats .ic { width: 46px; height: 46px; box-shadow: none; }
    .auth2-feats .ic svg { width: 22px; height: 22px; }
    .auth2-callout { order: 5; margin-top: 0; width: 100%; font-size: 0.95rem; }
    .auth2-hero { display: none; }
    .page-login .auth2-feats, .page-login .auth2-callout { display: none; }
    .page-login .auth2-card.center .auth2-logo { display: none; }
}
@media (max-width: 560px) {
    .auth2-card { padding: 1.6rem 1.15rem 1.4rem; border-radius: 22px; }
    .auth2-card.center { padding-top: 1.75rem; }
    .auth2-card .lead { font-size: 0.98rem; margin-bottom: 1.2rem; }
    .f-row { grid-template-columns: 1fr; }
    .f-ic { display: none; }
    .f-phone { grid-template-columns: 118px minmax(0, 1fr); }
    .f-box { height: 56px; }
    .f-box .cell { width: 54px; }
    .f-box .cell svg { width: 22px; height: 22px; }
    .btn-auth { height: 56px; font-size: 1.15rem; }
    .free-box { padding: 0.9rem 1rem; gap: 0.8rem; }
    .free-box svg { width: 36px; height: 36px; }
    .f-agree { font-size: 0.92rem; }
}
.f-ic-top { align-self: start; margin-top: 1.7rem; }
