/* ==================================================================
   HMS Login / Register Page
   Foto melayang FULL SCREEN sebagai layer latar belakang (bukan kotak
   berwarna), form glass mengambang di atasnya. Background halaman
   mengikuti tema (light/dark) yang sudah didefinisikan di theme.css.
   Semua animasi transform/opacity only.
   ================================================================== */

.auth-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ---------- Layer latar belakang full-screen (shapes + foto) ---------- */
.auth-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Parallax blob shapes lembut, warna mengikuti aksen tema */
.parallax-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.25;
    will-change: transform;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent), var(--accent-2));
}
.shape-1 { width: 380px; height: 380px; top: -100px; left: -80px; }
.shape-2 { width: 260px; height: 260px; bottom: 10%; left: 20%; opacity: 0.18; }
.shape-3 { width: 460px; height: 460px; bottom: -160px; right: -120px; opacity: 0.16; }

/* ---------- Foto melayang, tersebar full-screen ---------- */
.photo-card {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
    will-change: transform;
    pointer-events: none;
}
.photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.photo-card.pc-1 { width: 220px; height: 165px; top: 8%;  left: 25%;   animation: floatY 7s ease-in-out infinite; }
.photo-card.pc-2 { width: 190px; height: 145px; top: 40%; right: 2%;  animation: floatY 8.5s ease-in-out infinite; animation-delay: -2s; }
.photo-card.pc-3 { width: 210px; height: 160px; top: 40%; left: 30%;   animation: floatY 6.5s ease-in-out infinite; animation-delay: -4s; }
.photo-card.pc-4 { width: 180px; height: 138px; top: 75%; left: 35%;  animation: floatY 9s ease-in-out infinite;   animation-delay: -1s; }
.photo-card.pc-5 { width: 200px; height: 150px; top: 6%;  right: 6%;  animation: floatY 7.8s ease-in-out infinite; animation-delay: -3s; }
.photo-card.pc-6 { width: 170px; height: 130px; bottom: 5%; right: 5%; animation: floatY 8s ease-in-out infinite; animation-delay: -5s; }

@media (max-width: 1400px) {
    .photo-card.pc-2, .photo-card.pc-4 { display: none; }
}
@media (max-width: 991px) {
    .photo-card { opacity: 0.5; }
    .photo-card.pc-3, .photo-card.pc-6 { display: none; }
}
@media (max-width: 576px) {
    .auth-bg-layer { opacity: 0.35; }
    .photo-card.pc-1, .photo-card.pc-5 { display: none; }
}

/* Glass reflection sweep sekali saat halaman dimuat */
.photo-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: glassReflection 2.6s ease-in-out 0.6s 1;
}

/* ---------- Tombol switch tema di pojok halaman auth ---------- */
.auth-theme-toggle-wrap {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
    box-shadow: var(--glass-shadow);
}
.auth-theme-toggle-wrap span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ---------- Konten teks showcase (tanpa background, transparan) ---------- */
.auth-showcase-content {
    position: relative;
    z-index: 2;
    flex: 1.15;
    color: var(--text-primary);
    max-width: 460px;
    padding: 40px 56px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 999px;
    backdrop-filter: var(--blur-soft);
    margin-bottom: 24px;
}

.auth-showcase-content h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.auth-showcase-content p.lead {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 36px;
}

.auth-stats {
    display: flex;
    gap: 32px;
}
.auth-stats .stat-value { color: var(--text-primary); font-size: 1.5rem; }
.auth-stats .stat-label { color: var(--text-muted); }

/* ---------- Form kanan ---------- */
.auth-form-side {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
    padding: 40px 36px;
}

.auth-card .brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 6px;
}
.auth-card .brand-mark i {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 1.15rem;
}

.auth-card h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    margin: 14px 0 4px;
    color: var(--text-primary);
}
.auth-card .sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .auth-showcase-content { display: none; }
    .auth-form-side { flex: 1; width: 100%; }
    .auth-page { justify-content: center; }
}

@media (max-width: 420px) {
    .auth-card { padding: 28px 22px; }
    .auth-theme-toggle-wrap span { display: none; }
}
