/* ============================================================
   LOGIN PEMOHON — pelengkap login-core.css
   File ini HANYA berisi elemen yang khas pada kartu login pemohon
   (header avatar, tombol buat-akun/daftar, separator, dsb). Hero,
   latar, layout, input, dan tombol "Masuk" mengikuti login-core.css
   agar identik dengan halaman login petugas.
   ============================================================ */

/* ----- Aksen "yellow blob" di pojok kiri-atas kartu pemohon ----- */
.card-accent-corner {
    width: 160px;
    height: 160px;
    background-image: url("/img/card-login/yellow-bolb.svg");
}

/* ----- Header kartu dengan avatar ----- */
.card-header-new {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 14px;
}

.avatar-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f0fe;
}

.header-text h2 {
    margin-bottom: 3px;
    color: var(--login-navy);
    font-family: var(--login-font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.header-text p {
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* ----- Tombol kembali kecil (form daftar/verifikasi/reset) ----- */
.btn-back-small {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-right: 14px;
    border: 1px solid var(--login-line);
    border-radius: 9px;
    background: var(--login-white);
    color: var(--login-navy);
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.btn-back-small:hover {
    background: var(--login-field);
    border-color: var(--login-navy);
    transform: translateX(-3px);
}

/* ----- Tombol pada kartu pemohon ("Masuk" diwarisi login-core) ----- */
.button-group button {
    margin-bottom: 12px;
}

.button-group button:last-child {
    margin-bottom: 0;
}

.btn-buat-akun,
.btn-daftar {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: var(--login-control-radius);
    font-family: var(--login-font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.btn-buat-akun {
    border: 1px solid var(--login-gold);
    background: transparent;
    color: var(--login-navy);
}

.btn-buat-akun:hover:not(:disabled) {
    background: rgba(245, 166, 35, 0.08);
}

.btn-daftar {
    border: 0;
    background: var(--login-gold);
    color: var(--login-white);
    box-shadow: 0 7px 17px rgba(245, 166, 35, 0.28);
}

.btn-daftar:hover:not(:disabled) {
    background: #e09612;
    transform: translateY(-1px);
}

.button-group button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

/* ----- Link bantuan, separator, status OTP ----- */
.auth-help-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
    padding: 0 24px 14px;
}

.auth-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--login-navy);
    font-family: var(--login-font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.auth-link-button:hover {
    color: var(--login-navy-dark);
    text-decoration: underline;
}

.separator {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--login-muted);
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--login-line);
}

.separator span {
    padding: 0 16px;
    font-size: 12px;
}

.otp-resend-status {
    min-height: 18px;
    color: var(--login-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* ----- Alert sukses (login-core hanya mendefinisikan error) ----- */
.alert-success {
    border: 1px solid #a9dfbf;
    background: #d5f5e3;
    color: #1e8449;
}

/* ----- Input tanpa ikon kiri (form daftar/verifikasi/reset) ----- */
#reg-email,
#reg-nama,
#reg-hp,
#complete-email,
#verify-email,
#verify-otp,
#forgot-email,
#reset-email,
#reset-otp {
    padding-inline: 16px;
}

/* Field password pada form tersebut tetap punya ikon mata di kanan */
#reg-password,
#reset-password {
    padding-left: 16px;
}

/* Kartu lebar (>=480px) memakai varian blob "wide" yang lebih gempal. */
@media (min-width: 480px) {
    .card-accent-corner {
        background-image: url("/img/card-login/yellow-bolb.-wide.svg");
    }
}

/* ============================================================
   TABLET PORTRAIT >= 480px — selaraskan skala dengan login-core
   ============================================================ */
@media (min-width: 480px) and (orientation: portrait) {
    .card-header-new {
        gap: 16px;
        padding: 32px 30px 18px;
    }

    .avatar-icon {
        width: 64px;
        height: 64px;
    }

    .header-text h2 {
        font-size: 24px;
    }

    .header-text p {
        font-size: 15px;
    }

    .btn-back-small {
        width: 44px;
        height: 44px;
    }

    .auth-help-row {
        padding-inline: 30px;
    }

    .btn-buat-akun,
    .btn-daftar {
        min-height: 56px;
        border-radius: 12px;
        font-size: 16.5px;
    }

    .card-accent-corner {
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 380px) {
    .card-accent-corner {
        width: 130px;
        height: 130px;
    }
}

/* ============================================================
   ULTRA-WIDE: 1600+ — skala elemen kartu pemohon mengikuti login-core
   ============================================================ */
@media (min-width: 1600px) and (orientation: landscape) {
    .card-header-new {
        gap: clamp(16px, 1.1vw, 22px);
        padding: clamp(28px, 2.2vw, 48px) clamp(32px, 2.2vw, 56px) clamp(14px, 1.2vw, 24px);
    }

    .avatar-icon {
        width: clamp(54px, 3.6vw, 80px);
        height: clamp(54px, 3.6vw, 80px);
    }

    .header-text h2 {
        font-size: clamp(20px, 1.4vw, 29px);
    }

    .header-text p {
        font-size: clamp(13px, 0.9vw, 17px);
    }

    .auth-help-row {
        padding-inline: clamp(32px, 2.2vw, 56px);
    }

    .auth-link-button {
        font-size: clamp(12.5px, 0.85vw, 16px);
    }

    .btn-buat-akun,
    .btn-daftar {
        min-height: clamp(44px, 2.5vw, 62px);
        border-radius: 12px;
        font-size: clamp(14px, 0.95vw, 18px);
    }

    .separator {
        margin-bottom: clamp(14px, 1vw, 20px);
    }

    .separator span {
        font-size: clamp(12px, 0.8vw, 15px);
    }

    .otp-resend-status {
        min-height: clamp(18px, 1.2vw, 24px);
        font-size: clamp(12px, 0.78vw, 15px);
    }

    .card-accent-corner {
        width: clamp(160px, 10vw, 250px);
        height: clamp(160px, 10vw, 250px);
    }
}
