/* ── CARD ── */
.card {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 920px;
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 2px 8px rgba(43, 108, 176, 0.06),
        0 12px 40px rgba(43, 108, 176, 0.12),
        0 40px 80px rgba(43, 108, 176, 0.08);
    overflow: hidden;
    animation: cardIn 0.75s cubic-bezier(0.34, 1.15, 0.64, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── LEFT PANEL ── */
.lp {
    width: 340px;
    flex-shrink: 0;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: linear-gradient(148deg,
            var(--b9) 0%,
            var(--b8) 50%,
            #1a5c8a 100%);
}

.lp::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(99, 179, 237, 0.16) 0%,
            transparent 65%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.lp::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(13, 148, 136, 0.18) 0%,
            transparent 65%);
    bottom: -60px;
    left: -40px;
    pointer-events: none;
}

/* Container Utama */
.lp-brand {
    display: flex;
    /* Membuat isi berjejer ke samping */
    align-items: center;
    /* Membuat logo dan teks sejajar secara vertikal di tengah */
    gap: 12px;
    /* Jarak antara logo dan teks */
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

/* Wrapper Teks (Dinas Kominfo & Kota Pekalongan) */
.lp-brand>div {
    display: flex;
    flex-direction: column;
    /* Membuat teks nama dan sub tetap bertumpuk atas-bawah */
    justify-content: center;
}

/* Penyesuaian Logo */
.lp-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex-shrink: 0;
    /* Mencegah logo gepeng */
    background: linear-gradient(145deg, var(--b5), var(--b9));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.5);
}

.lp-logo img {
    width: 30px;
    /* Sesuaikan agar tidak terlalu besar di dalam kotak */
    height: auto;
    display: block;
}

/* Penyesuaian Teks */
.lp-brand-name {
    font-family: "Instrument Serif", serif;
    font-size: 18px;
    /* Sedikit diperbesar agar proporsional */
    color: #fff;
    line-height: 1.1;
    /* Rapatkan jarak antar baris */
    display: block;
}

.lp-brand-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    display: block;
}

/* hero icon */
.lp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-bottom: 36px;
}

.icon-rig {
    position: relative;
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r1 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(99, 179, 237, 0.3);
    animation: spin 14s linear infinite;
}

.r1::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--b3);
    box-shadow: 0 0 8px var(--b3);
}

.r2 {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px dashed rgba(99, 179, 237, 0.2);
    animation: spin 9s linear infinite reverse;
}

.r2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.7);
}

.r3 {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(99, 179, 237, 0.1);
    animation: spin 6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.icon-core {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    z-index: 1;
    background: linear-gradient(145deg, var(--b5), var(--b9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow:
        0 8px 28px rgba(43, 108, 176, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: float 4.5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* info cards */
.lp-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(99, 179, 237, 0.12);
}

.info-num {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--b4), var(--b6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.35);
}

.info-txt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* tagline */
.lp-text {
    position: relative;
    z-index: 2;
}

.tagline {
    font-family: "Instrument Serif", serif;
    font-size: 23px;
    color: #fff;
    line-height: 1.38;
    margin-bottom: 8px;
}

.tagline em {
    font-style: italic;
    color: var(--b3);
}

.lp-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

/* ── RIGHT PANEL ── */
.rp {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rp::-webkit-scrollbar {
    display: none;
}

.rp-inner {
    padding: 48px 44px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* head */
.rp-head {
    margin-bottom: 28px;
    animation: up 0.55s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--b5);
    margin-bottom: 9px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--b5), var(--b3));
    border-radius: 2px;
    flex-shrink: 0;
}

.rp-title {
    font-family: "Instrument Serif", serif;
    font-size: 27px;
    color: var(--b9);
    line-height: 1.22;
    margin-bottom: 5px;
}

.rp-sub {
    font-size: 13px;
    color: var(--g5);
    line-height: 1.62;
}

/* notice box */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r);
    background: #eff6ff;
    border: 1.5px solid var(--b1);
    margin-bottom: 24px;
    animation: up 0.55s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.notice i {
    font-size: 18px;
    color: var(--b5);
    flex-shrink: 0;
    margin-top: 1px;
}

.notice p {
    font-size: 13px;
    color: var(--b7);
    line-height: 1.6;
}

/* form */
.aform {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: up 0.55s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--g6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.flbl i {
    font-size: 12px;
    color: var(--b4);
}

.fw {
    position: relative;
}

.fi {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--g4);
    pointer-events: none;
    transition: color var(--tr);
}

.fw:focus-within .fi {
    color: var(--b5);
}

.finp {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--g1);
    border: 1.5px solid var(--g2);
    border-radius: var(--r);
    font-size: 13.5px;
    font-family: "DM Sans", sans-serif;
    color: var(--g8);
    outline: none;
    transition:
        border-color var(--tr),
        background var(--tr),
        box-shadow var(--tr);
}

.finp::placeholder {
    color: var(--g4);
}

.finp:focus {
    border-color: var(--b4);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.finp.err {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.09);
}

.fline {
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--b4), transparent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fw:focus-within .fline {
    transform: scaleX(1);
}

.err-msg {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #dc2626;
}

.err-msg.show {
    display: flex;
    animation: errPop 0.18s ease both;
}

@keyframes errPop {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* submit button */
.btn-main {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--b6), var(--b9));
    border: none;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.015em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.3);
    transition:
        transform var(--tr-b),
        box-shadow var(--tr-b);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(43, 108, 176, 0.4);
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-main i {
    font-size: 16px;
    transition: transform var(--tr-b);
}

.btn-main:hover i {
    transform: translateX(3px);
}

.btn-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(255, 255, 255, 0.18) 50%,
            transparent 65%);
    transform: translateX(-100%);
    animation: sweep 2.8s ease-in-out infinite;
}

@keyframes sweep {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.btn-main.loading {
    pointer-events: none;
    opacity: 0.88;
}

.btn-main.loading .btn-txt {
    opacity: 0;
}

.btn-main.loading::after {
    animation: none;
}

.spin {
    display: none;
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: rotate 0.65s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.btn-main.loading .spin {
    display: block;
}

.btn-main.loading .btn-icon {
    display: none;
}

/* back link */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--g5);
    text-decoration: none;
    transition: color var(--tr);
}

.back-link:hover {
    color: var(--b6);
}

.back-link i {
    font-size: 14px;
}

/* success state */
.success-box {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 10px 0;
    animation: up 0.4s ease both;
}

.s-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, #38bdf8, var(--b6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bounceIn {
    from {
        transform: scale(0.4);
    }

    to {
        transform: scale(1);
    }
}

.success-box h3 {
    font-family: "Instrument Serif", serif;
    font-size: 22px;
    color: var(--b9);
}

.success-box p {
    font-size: 13px;
    color: var(--g5);
    line-height: 1.65;
    max-width: 340px;
}

.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--b0);
    border: 1.5px solid var(--b1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--b7);
}

.resend-link {
    font-size: 12.5px;
    color: var(--g4);
}

.resend-link a {
    color: var(--b6);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--tr);
}

.resend-link a:hover {
    color: var(--b8);
}

/* ══════════════════════════════════
   RESPONSIVE — FORGOT PASSWORD
══════════════════════════════════ */
@media (max-width: 780px) {

    /* Card stacks vertically */
    .card {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
        margin: auto;
    }

    /* Override fixed width left panel */
    .lp {
        width: 100%;
        flex-shrink: 1;
        padding: 24px 22px;
        justify-content: flex-start;
        gap: 16px;
    }

    /* Hide info steps and tagline on mobile */
    .lp-info {
        display: none;
    }

    .lp-text {
        display: none;
    }

    .lp-hero {
        margin-bottom: 0;
    }

    .lp-brand {
        margin-bottom: 16px;
    }

    /* Icon rig smaller */
    .icon-rig {
        width: 100px;
        height: 100px;
    }

    .icon-core {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 24px;
    }

    .r2 {
        inset: 12px;
    }

    .r3 {
        inset: 22px;
    }

    /* Right panel */
    .rp {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--g2);
    }

    .rp-inner {
        padding: 28px 22px;
    }

    .rp-head {
        margin-bottom: 22px;
    }
}

@media (max-width: 460px) {
    .card {
        border-radius: var(--r-lg);
    }

    .lp {
        padding: 20px 18px;
        gap: 12px;
    }

    .lp-brand {
        margin-bottom: 12px;
    }

    /* Hide hero icon on small screens */
    .lp-hero {
        display: none;
    }

    .rp-inner {
        padding: 24px 18px;
    }

    .rp-head {
        margin-bottom: 18px;
    }

    .rp-title {
        font-size: 22px;
    }

    .rp-sub {
        font-size: 12px;
    }

    .eyebrow {
        font-size: 10.5px;
    }

    /* Notice box */
    .notice {
        padding: 12px 14px;
        gap: 10px;
        margin-bottom: 18px;
    }

    .notice i {
        font-size: 16px;
    }

    .notice p {
        font-size: 12px;
    }

    /* Form */
    .aform {
        gap: 14px;
    }

    .fg {
        gap: 4px;
    }

    .flbl {
        font-size: 10px;
    }

    .finp {
        padding: 10px 12px 10px 36px;
        font-size: 13px;
    }

    .fi {
        font-size: 14px;
        left: 12px;
    }

    /* Button */
    .btn-main {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Back link */
    .back-link {
        font-size: 12px;
    }

    /* Success state */
    .success-box h3 {
        font-size: 19px;
    }

    .success-box p {
        font-size: 12px;
        max-width: 280px;
    }

    .s-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
        border-radius: 18px;
    }

    .email-chip {
        font-size: 12px;
        padding: 5px 12px;
    }

    .resend-link {
        font-size: 11.5px;
    }

    /* Footer */
    .rp-foot p {
        font-size: 10.5px;
    }
}

@media (max-width: 360px) {
    .lp {
        padding: 16px 14px;
    }

    .rp-inner {
        padding: 20px 14px;
    }

    .rp-head {
        margin-bottom: 16px;
    }

    .rp-title {
        font-size: 20px;
    }

    .eyebrow {
        font-size: 10px;
    }

    .notice {
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .notice p {
        font-size: 11.5px;
    }

    .finp {
        padding: 9px 10px 9px 34px;
        font-size: 12.5px;
    }

    .btn-main {
        padding: 11px 14px;
        font-size: 12.5px;
    }
}