/* ============================================
   ASNET Hotspot Login - Tema ASNET
   Warna utama : #f5a200 (kuning/emas)
   Background  : #636363 (abu gelap)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Lato";
    src: url("./font/Lato-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;

    background-color: #636363;
    background-image: none;
}

/* ===========================
   WRAPPER & CARD
   =========================== */
.asnet-wrapper {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.asnet-card {
    width: 100%;
    flex: 1;
    padding: clamp(20px, 5vw, 32px) clamp(16px, 5vw, 28px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* ── GLASSMORPHISM ABU-ABU ── */
    background: rgba(160, 160, 160, 0.60);
    backdrop-filter: blur(24px) saturate(1.2) brightness(0.90);
    -webkit-backdrop-filter: blur(24px) saturate(1.2) brightness(0.90);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.20);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

/* ===========================
   HEADER / LOGO
   =========================== */
.asnet-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: clamp(16px, 5vw, 26px);
    padding-top: 4px;
}

.asnet-logo-img {
    width: 100%;
    max-width: clamp(260px, 92vw, 380px);
    height: auto;
    display: block;
}

/* ===========================
   ANIMASI BORDER KUNING EMAS
   =========================== */
.asnet-card {
    position: relative;
}

.border-top,
.border-right,
.border-bottom,
.border-left {
    position: absolute;
    background: transparent;
    z-index: 0;
}

/* Garis atas */
.border-top {
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 162, 0, 0.6) 40%,
        rgb(245, 162, 0) 70%,
        transparent
    );
    animation: borderTop 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0s;
}

/* Garis kanan */
.border-right {
    top: 0;
    right: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(245, 162, 0, 0.6) 40%,
        rgb(245, 162, 0) 70%,
        transparent
    );
    animation: borderRight 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0.85s;
}

/* Garis bawah */
.border-bottom {
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        270deg,
        transparent,
        rgba(245, 162, 0, 0.6) 40%,
        rgb(245, 162, 0) 70%,
        transparent
    );
    animation: borderBottom 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1.7s;
}

/* Garis kiri */
.border-left {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(
        0deg,
        transparent,
        rgba(245, 162, 0, 0.6) 40%,
        rgb(245, 162, 0) 70%,
        transparent
    );
    animation: borderLeft 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 2.55s;
}

@keyframes borderTop {
    0%   { width: 0;    opacity: 0; left: 0; }
    15%  { opacity: 1; }
    70%  { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}
@keyframes borderBottom {
    0%   { width: 0;    opacity: 0; right: 0; }
    15%  { opacity: 1; }
    70%  { width: 90%;  opacity: 1; }
    100% { width: 90%;  opacity: 0; }
}
@keyframes borderRight {
    0%   { height: 0;    opacity: 0; top: 0; }
    15%  { opacity: 1; }
    70%  { height: 100%; opacity: 1; }
    100% { height: 100%; opacity: 0; }
}
@keyframes borderLeft {
    0%   { height: 0;   opacity: 0; bottom: 0; }
    15%  { opacity: 1; }
    70%  { height: 90%; opacity: 1; }
    100% { height: 90%; opacity: 0; }
}

/* ===========================
   TAB BUTTONS
   =========================== */
.asnet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    height: clamp(42px, 11vw, 50px);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: "Lato", Arial, sans-serif;
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.tab-btn:active {
    opacity: 0.85;
}

/* Voucher aktif */
.tab-voucher {
    background-color: #ffffff;
    color: #1a1a1a;
}
.tab-voucher.active {
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}
.tab-voucher:not(.active) {
    background-color: rgba(255,255,255,0.60);
    color: #555;
    box-shadow: none;
}

/* Member aktif */
.tab-member {
    background-color: #1a1a1a;
    color: #ffffff;
}
.tab-member.active {
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.tab-member:not(.active) {
    background-color: rgba(30,30,30,0.65);
    color: #999;
    box-shadow: none;
}

/* ===========================
   FORM & INPUT
   =========================== */
.asnet-form {
    display: flex;
    flex-direction: column;
}

.asnet-field {
    margin-bottom: clamp(10px, 3vw, 14px);
}

.asnet-input {
    width: 100%;
    height: clamp(46px, 12vw, 54px);
    border-radius: 30px;
    border: none;
    background-color: #ffffff;
    padding: 0 clamp(16px, 4vw, 22px);
    font-size: clamp(14px, 3.5vw, 16px);
    font-family: "Lato", Arial, sans-serif;
    color: #333333;
    outline: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.13);
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.asnet-input::placeholder {
    color: #b0b0b0;
}

.asnet-input:focus {
    box-shadow: 0 0 0 2.5px #f5a200, 0 2px 8px rgba(0,0,0,0.15);
}

/* ===========================
   TOMBOL LOGIN
   =========================== */
.asnet-login-btn {
    width: 100%;
    height: clamp(46px, 12vw, 54px);
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #f5a200 0%, #f0c030 60%, #e89000 100%);
    color: #1a1a1a;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 800;
    font-family: "Lato", Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: clamp(4px, 2vw, 8px);
    box-shadow: 0 4px 16px rgba(245, 162, 0, 0.45), 0 1px 3px rgba(0,0,0,0.2);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Shimmer sweep — sama seperti price card */
.asnet-login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

.asnet-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 162, 0, 0.6), 0 2px 6px rgba(0,0,0,0.2);
}

.asnet-login-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(245, 162, 0, 0.3);
}

/* ===========================
   HARGA VOUCHER
   =========================== */
.asnet-price-section {
    margin-top: clamp(16px, 4vw, 24px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asnet-price-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(12px, 3vw, 14px);
    color: #cccccc;
    margin-bottom: clamp(10px, 3vw, 14px);
    padding-left: 2px;
    letter-spacing: 0.5px;
}

.asnet-price-list {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2.5vw, 10px);
}

/* ── Card harga dengan staggered entrance ── */
.asnet-price-item {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5a200 0%, #f0c030 60%, #e89000 100%);
    box-shadow: 0 4px 14px rgba(245, 162, 0, 0.35), 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    padding: clamp(9px, 2.5vw, 12px) clamp(12px, 3.5vw, 16px);
    gap: clamp(8px, 2.5vw, 12px);
    overflow: hidden;
    position: relative;
    cursor: default;
    /* Staggered entrance: slide up + fade */
    opacity: 0;
    transform: translateY(22px);
    animation: priceEntrance 0.45s ease forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.3s);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Shimmer sweep melintas di card */
.asnet-price-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s + 0.8s);
    pointer-events: none;
}

/* Hover: angkat card + glow lebih kuat */
.asnet-price-item:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 22px rgba(245, 162, 0, 0.55), 0 2px 6px rgba(0,0,0,0.2);
}

/* ── Ikon WiFi ── */
.price-icon {
    flex-shrink: 0;
    width: clamp(32px, 9vw, 38px);
    height: clamp(32px, 9vw, 38px);
    border-radius: 50%;
    background-color: rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

/* ── Info nama + kecepatan ── */
.price-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.price-name {
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    white-space: nowrap;
}

.price-speed {
    font-size: clamp(9px, 2.4vw, 11px);
    color: rgba(0,0,0,0.55);
    font-weight: 600;
    white-space: nowrap;
}

/* ── Harga + badge (kanan) ── */
.price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.price-value {
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
}

.price-badge {
    background-color: rgba(0,0,0,0.14);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: clamp(9px, 2.4vw, 11px);
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ── Keyframes ── */
@keyframes priceEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%   { left: -75%; }
    50%  { left: 125%; }
    100% { left: 125%; }
}

/* ===========================
   RESPONSIVE — LAYAR LEBAR
   =========================== */
@media (min-width: 480px) {
    body {
        align-items: center;
        padding: 32px 16px;
    }

    .asnet-wrapper {
        min-height: auto;
        border-radius: 24px;
        overflow: hidden;
    }

    .asnet-card {
        border-radius: 24px;
        box-shadow:
            0 24px 64px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(245, 162, 0, 0.12),
            0 0 80px rgba(245, 162, 0, 0.06);
    }
}

/* ===========================
   POPUP RESELLER
   =========================== */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.popup-overlay.active {
    display: flex;
    animation: overlayIn 0.25s ease;
}

.popup-overlay.closing .popup-box {
    animation: popupOut 0.28s ease forwards;
}

.popup-box {
    width: 100%;
    max-width: 420px;
    background: rgba(25, 18, 4, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 162, 0, 0.35);
    border-left: 1px solid rgba(245, 162, 0, 0.15);
    border-right: 1px solid rgba(245, 162, 0, 0.15);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    animation: popupIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header popup */
.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px 18px;
    border-bottom: 1px solid rgba(245, 162, 0, 0.12);
}

.popup-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5a200, #e09000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    flex-shrink: 0;
}

.popup-title {
    font-size: 15px;
    font-weight: 800;
    color: #f5a200;
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.popup-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.popup-close:hover {
    background: rgba(245, 162, 0, 0.2);
    color: #f5a200;
}

/* List reseller */
.popup-list {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 55vh;
    overflow-y: auto;
}

.reseller-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 162, 0, 0.10);
    transition: background 0.2s;
}

.reseller-item:hover {
    background: rgba(245, 162, 0, 0.08);
}

.reseller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5a200 0%, #c47800 100%);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reseller-info {
    flex: 1;
    min-width: 0;
}

.reseller-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.reseller-address,
.reseller-phone {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.50);
    margin-top: 2px;
}

/* Footer popup */
.popup-footer {
    text-align: center;
    padding: 12px 16px 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.30);
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Animasi */
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popupIn {
    from { transform: translateY(100%); opacity: 0.5; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes popupOut {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}
