/* ===== Background sama macam login.php & register.php =====
   Dipakai oleh forgot_password.php dan reset_password.php */
.bg-wrapper{position:fixed;inset:0;z-index:0;overflow:hidden;}
.bg-image{position:absolute;inset:0;background:url('../img/background_family.jpg') center/cover no-repeat;filter:blur(10px) brightness(.85);transform:scale(1.08);}
.bg-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(135deg,rgba(168,148,120,.82),rgba(160,145,120,.78),rgba(184,168,142,.86));}

.floating-elements{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden;}
.floating-elements .float-item{position:absolute;color:rgba(166,77,83,.08);font-size:4rem;animation:floatAround 25s ease-in-out infinite;}
.floating-elements .float-item:nth-child(1){top:8%;left:4%;animation-delay:0s;font-size:5rem;}
.floating-elements .float-item:nth-child(2){top:75%;left:2%;animation-delay:4s;font-size:3.5rem;}
.floating-elements .float-item:nth-child(3){top:15%;right:3%;animation-delay:6s;font-size:4.5rem;}
.floating-elements .float-item:nth-child(4){bottom:10%;right:5%;animation-delay:8s;font-size:3rem;}
.floating-elements .float-item:nth-child(5){top:50%;left:50%;animation-delay:12s;font-size:7rem;opacity:.03;}
@keyframes floatAround{0%,100%{transform:translateY(0) rotate(0) scale(1);}25%{transform:translateY(-40px) rotate(6deg) scale(1.05);}50%{transform:translateY(25px) rotate(-4deg) scale(.95);}75%{transform:translateY(-20px) rotate(5deg) scale(1.02);}}

.glow-orb{position:fixed;border-radius:50%;filter:blur(80px);pointer-events:none;z-index:0;animation:pulseGlow 10s ease-in-out infinite;}
.glow-orb.orb1{width:600px;height:600px;background:rgba(212,106,106,.12);top:-150px;right:-150px;}
.glow-orb.orb2{width:500px;height:500px;background:rgba(138,166,155,.08);bottom:-150px;left:-150px;animation-delay:4s;}
@keyframes pulseGlow{0%,100%{transform:scale(1) translate(0,0);}33%{transform:scale(1.15) translate(40px,-30px);}66%{transform:scale(.85) translate(-30px,40px);}}

/* kad borang & butang bahasa mesti berada di atas background */
.auth-card{position:relative;z-index:5;}
.lang-switcher-float{z-index:950;}

@media (max-width:640px){.floating-elements .float-item{display:none;}}
@media (prefers-reduced-motion:reduce){.floating-elements .float-item,.glow-orb{animation:none;}}

/* ===================================================================
   SPLIT LAYOUT forgot/reset password — gaya sama macam login.php
   =================================================================== */
.auth-split{
    position:relative;z-index:5;display:flex;width:100%;max-width:1200px;min-height:600px;
    border-radius:32px;overflow:hidden;box-shadow:0 40px 100px rgba(0,0,0,.45);
}

/* ---- KIRI: foto keluarga + kandungan ---- */
.auth-side{
    flex:1.2;position:relative;overflow:hidden;padding:30px 36px;
    display:flex;flex-direction:column;justify-content:center;
    background:linear-gradient(100deg,#fdf6f2 0%,#fdf6f2 38%,transparent 62%),var(--rose-tint,#f6e3e3);
}
.auth-side-photo{
    position:absolute;top:0;right:2%;bottom:0;width:40%;z-index:0;
    background:url('../img/forgot_security.png') center 60%/contain no-repeat;
}
.auth-side::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
    background:radial-gradient(circle at 30% 20%,rgba(212,106,106,.08),transparent 60%);}
.auth-side-logo{position:absolute;top:24px;right:24px;z-index:3;}
.auth-side-logo img{height:72px;width:auto;display:block;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(166,77,83,.15));}
.auth-side-content{position:relative;z-index:2;max-width:58%;}   /* tulisan kiri, gambar telefon di kanan tak dilindung */
.auth-side h2{font-family:'Fraunces',serif;font-size:1.9rem;line-height:1.2;color:var(--ink,#1f3a3d);margin:0 0 .35em;}
.auth-side h2 i{font-size:.6em;vertical-align:middle;color:var(--ink,#1f3a3d);}
.auth-side-lede{font-size:1rem;color:#5a5044;line-height:1.65;margin:0 0 1em;}
.auth-side-steps{list-style:none;margin:.4em 0 .9em;padding:0;}
.auth-side-steps li{display:flex;align-items:center;gap:.6em;margin-bottom:.55em;}
.auth-side-ico{
    width:30px;height:30px;border-radius:50%;flex-shrink:0;background:#fff;
    border:1px solid rgba(166,77,83,.18);box-shadow:0 4px 10px -4px rgba(166,77,83,.2);
    display:flex;align-items:center;justify-content:center;color:var(--rose-deep,#a64d53);font-size:.95rem;
}
.auth-side-steps li span{font-size:.84rem;color:#4a423a;font-weight:600;}
.auth-side-quote{
    background:var(--rose-tint,#f6e3e3);border:1px solid rgba(166,77,83,.14);border-radius:14px;
    padding:.7em 1em .7em 1.1em;font-size:.88rem;color:#4a423a;line-height:1.5;max-width:360px;
    box-shadow:0 10px 24px -12px rgba(166,77,83,.2);margin-bottom:1.3em;
}
.auth-side-quote span{font-family:'Fraunces',serif;color:var(--rose-deep,#a64d53);font-size:1.3em;line-height:0;}
.auth-side-bubbles{display:flex;flex-wrap:wrap;gap:.6em;}
.auth-side-bubbles span{
    display:inline-flex;align-items:center;gap:.45em;background:#fff;border:1px solid rgba(166,77,83,.14);
    border-radius:30px;padding:.65em 1.1em;font-size:.86rem;font-weight:600;color:var(--rose-deep,#a64d53);
    box-shadow:0 8px 20px -12px rgba(31,58,61,.3);
}

/* ---- KANAN: latar beige + kad borang pink ---- */
.auth-right{
    flex:1;display:flex;align-items:center;justify-content:center;padding:40px;
    background:rgba(228,215,191,.5);backdrop-filter:blur(2px);
}
.auth-right .auth-card{
    width:100%;max-width:440px;
    background:linear-gradient(160deg,#FFF4F7 0%,#FCE7EE 100%);
    border:1px solid rgba(166,77,83,.2);border-radius:28px;
    box-shadow:0 30px 80px -20px rgba(31,58,61,.22),inset 0 1px 0 rgba(255,255,255,.8);
    padding:2.2rem 1.8rem;
}
.auth-right .auth-card > img{
    height:52px;width:52px;padding:6px;background:#fff;border-radius:14px;object-fit:contain;
    box-shadow:0 6px 16px -8px rgba(166,77,83,.35);
}
.auth-right .auth-card .icon-wrap{background:#fff;}
.auth-right .field-pink input{background:#fff;border:1.5px solid rgba(166,77,83,.28);border-radius:14px;}

/* ---- Tablet & mobile ---- */
@media (max-width:900px){
    .auth-split{flex-direction:column;max-width:520px;min-height:0;border-radius:24px;}
    .auth-side{padding:22px 24px;background:linear-gradient(180deg,rgba(253,246,242,.96),rgba(250,233,233,.94));}
    .auth-side-photo{top:auto;right:-6%;bottom:-8%;width:45%;height:70%;opacity:.12;background-position:right bottom;}
    .auth-side-content{max-width:100%;}
    .auth-side-logo{top:14px;right:14px;}
    .auth-side-logo img{height:44px;}
    .auth-side h2{font-size:1.35rem;padding-right:56px;}
    .auth-side-lede{font-size:.88rem;}
    .auth-right{padding:20px;}
    .auth-right .auth-card{padding:1.8rem 1.3rem;}
}

/* ===== PAGE WRAPPER + TOP NAV (sama macam login.php) ===== */
body{display:block !important;padding:0 !important;align-items:initial;}
.auth-page{
    position:relative;z-index:5;min-height:calc(100vh - 66px);
    display:flex;align-items:center;justify-content:center;padding:40px 20px;
}
.auth-nav{
    position:relative;z-index:6;width:100%;padding:.7em 2em;
    background:linear-gradient(135deg,rgba(193,102,107,.10),rgba(116,140,119,.10)),rgba(247,242,234,.92);
    backdrop-filter:blur(14px) saturate(160%);-webkit-backdrop-filter:blur(14px) saturate(160%);
    border-bottom:1px solid var(--line);box-shadow:0 6px 20px -14px rgba(31,58,61,.2);
}
.auth-nav-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1.5em;}
.auth-nav-back{display:flex;align-items:center;gap:.4em;text-decoration:none;color:var(--ink);font-weight:600;font-size:.85rem;padding:.5em .9em;border-radius:8px;border:1px solid var(--line);flex-shrink:0;}
.auth-nav-back:hover{background:var(--paper-alt);color:var(--rose-deep);}
.auth-nav-brand{display:flex;align-items:center;gap:.7em;text-decoration:none;color:inherit;}
.auth-nav-brand img{height:36px;width:auto;}
.auth-nav-brand b{display:block;font-family:'Fraunces',serif;font-size:1.05rem;color:var(--ink);}
.auth-nav-brand span{display:block;font-size:.7rem;color:#8a7f6f;}
.auth-nav-links{display:flex;gap:1.6em;}
.auth-nav-links a{font-size:.85rem;font-weight:600;color:#5a5044;text-decoration:none;transition:color .25s ease;}
.auth-nav-links a:hover{color:var(--rose-deep);}

/* ===== "Lihat lagi" (hanya dalam mobile) ===== */
.auth-more-toggle{display:none;}
.auth-more-info{max-height:none;overflow:visible;}

@media (max-width:900px){
    .auth-nav-links{display:none;}
    .auth-page{padding:16px 14px 80px;align-items:flex-start;min-height:0;}
}
@media (max-width:768px){
    .auth-nav{padding:.6em 1em;}
    .auth-nav-inner{justify-content:flex-start;gap:.9em;}
    .auth-nav-brand img{height:32px;}

    .auth-more-toggle{
        display:inline-flex;align-items:center;gap:.4em;margin-top:.2em;
        background:rgba(255,255,255,.6);border:1px solid rgba(166,77,83,.18);
        color:var(--rose-deep,#a64d53);font-weight:700;font-size:.78rem;
        padding:.45em .9em;border-radius:20px;cursor:pointer;font-family:inherit;
    }
    .auth-more-toggle i{transition:transform .25s ease;font-size:.8rem;}
    .auth-more-toggle.open i{transform:rotate(180deg);}
    .auth-more-info{max-height:0;overflow:hidden;transition:max-height .4s cubic-bezier(.22,.9,.32,1);}
    .auth-more-info.open{max-height:520px;margin-top:.8em;}
    .auth-side-bubbles span{font-size:.76rem;padding:.5em .9em;}
}
