/* WarmFuncPage.css -- shared look of the "functional page" screens in the warm redesign (V2 views on _Layout_V2):
   futuristic plum hero (drifting glow, moving network canvas, perspective grid floor, spinning badge ring, info tiles, progress bar)
   plus the centred card / form / state-step blocks. Ported from the mockup (index.html, #page-forgot-password); scoped to .n4l-fh so it
   cannot touch any other page. First user: N4LRegistration/ForgotPassword_V2. Reuse it for the next functional pages (Change Password, ...). */
.n4l-fh{ background: var(--cream); }
.n4l-fh *{ box-sizing: border-box; }
.n4l-fh .wrap{ max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.n4l-fh .btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; padding: 14px 26px; border-radius: 12px; cursor: pointer; border: none; line-height: 1.2; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.n4l-fh .btn:hover{ transform: translateY(-2px); text-decoration: none; }
.n4l-fh .btn-primary{ background: linear-gradient(135deg, var(--orange) 0%, #FF8541 100%) !important; color: #fff !important; box-shadow: var(--shadow-warm); }
.n4l-fh .btn-ghost{ background: #fff; color: var(--purple); border: 1.5px solid #E7D8C6; }
.n4l-fh .btn[disabled]{ opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.n4l-fh h1, .n4l-fh h2, .n4l-fh h3{ text-transform: none; font-family: var(--font-heading); }
.n4l-fh .fh-who h1{ color: #fff !important; }
.n4l-fh .fh-card h2{ color: var(--purple) !important; }
.n4l-fh p{ line-height: 1.6; margin: 0; }
.n4l-fh a{ text-decoration: none; }
.n4l-fh .fh-in input{ height: auto; margin: 0; line-height: 1.4; box-shadow: none; }
.n4l-fh .fh-in input:focus{ box-shadow: 0 0 0 3px rgba(42,0,124,.12); }
.n4l-fh .fh-alert ul{ list-style: disc; }
.n4l-fh .fh-hero{ margin: 0; }
    .n4l-fh{--purple:#341552;--purple-soft:#792c4e;--h-net:255,255,255;--h-node:#FF9A56;--h-grid:rgba(255,255,255,.12);--h-pill:rgba(255,255,255,.1);--h-pline:rgba(255,255,255,.26);}
    .n4l-fh .wrap{max-width:1180px;margin:0 auto;padding:0 20px;}
    /* hero: same plum + height + futuristic effects as My Profile / TP Application */
    .n4l-fh .fh-hero{background:var(--plum-gradient);color:#fff;padding:38px 0 0;position:relative;overflow:hidden;min-height:var(--func-hero-h);display:flex;flex-direction:column;justify-content:center;}
    .n4l-fh .fh-hero::before{content:"";position:absolute;bottom:-140px;left:-90px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(254,95,0,.24),transparent 70%);pointer-events:none;}
    .n4l-fh .fh-hero::after{content:"";position:absolute;top:-120px;right:-80px;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.08),transparent 70%);pointer-events:none;animation:fhDrift 14s ease-in-out infinite alternate;}
    @keyframes fhDrift{from{transform:translate(0,0);}to{transform:translate(-50px,40px);}}
    .n4l-fh .fh-net{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;}
    .n4l-fh .fh-floor{position:absolute;left:-30%;right:-30%;bottom:0;height:150px;z-index:0;pointer-events:none;background-image:linear-gradient(var(--h-grid) 1px,transparent 1px),linear-gradient(90deg,var(--h-grid) 1px,transparent 1px);background-size:46px 46px;transform:perspective(380px) rotateX(62deg);transform-origin:50% 100%;-webkit-mask-image:linear-gradient(to top,#000 5%,transparent 90%);mask-image:linear-gradient(to top,#000 5%,transparent 90%);animation:fhGrid 7s linear infinite;}
    @keyframes fhGrid{to{background-position:0 46px,0 0;}}
    .n4l-fh .fh-hero .wrap{position:relative;z-index:1;width:100%;flex:1;display:flex;flex-direction:column;justify-content:space-between;}
    .n4l-fh .fh-id{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
    .n4l-fh .fh-badge{position:relative;flex:0 0 auto;width:88px;height:88px;border-radius:24px;background:linear-gradient(135deg,var(--cream-2),#FFDDBB);color:var(--purple);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #4f1e50,0 14px 34px -8px rgba(254,95,0,.5);}
    .n4l-fh .fh-badge::before{content:"";position:absolute;inset:-7px;border-radius:30px;padding:2px;background:conic-gradient(from 0deg,#FE5F00,#FF9A56,#FF9A56,#FE5F00);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:fhSpin 6s linear infinite;}
    @keyframes fhSpin{to{transform:rotate(360deg);}}
    .n4l-fh .fh-who{flex:1;min-width:240px;}
    .n4l-fh .fh-kick{font:700 11.5px 'Inter',sans-serif;letter-spacing:1.1px;text-transform:uppercase;color:#FFB27A;}
    .n4l-fh .fh-who h1{font:800 30px/1.15 'Poppins',sans-serif;color:#fff !important;margin:6px 0 10px;text-transform:none;}
    .n4l-fh .fh-meta{display:flex;flex-wrap:wrap;gap:8px 10px;font-size:13px;}
    .n4l-fh .fh-meta span{display:inline-flex;align-items:center;gap:7px;background:var(--h-pill);border:1px solid var(--h-pline);border-radius:30px;padding:5px 12px;color:#fff;}
    .n4l-fh .fh-actions{display:flex;gap:10px;flex-wrap:wrap;}
    .n4l-fh .fh-actions .btn{min-height:44px;padding:0 20px;font-size:14px;}
    .n4l-fh .fh-actions .btn-ghost{background:var(--h-pill);color:#fff;border:1.5px solid rgba(255,255,255,.35);}
    .n4l-fh .fh-actions .btn-ghost:hover{background:rgba(255,255,255,.2);border-color:#fff;}
    .n4l-fh .fh-kpis{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 0;}
    .n4l-fh .fh-kpi{background:var(--h-pill);border:1px solid var(--h-pline);border-radius:16px;padding:12px 16px;color:#fff;min-width:0;}
    .n4l-fh .fh-kpi .l{font:700 11px 'Inter',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:rgba(255,255,255,.86);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .n4l-fh .fh-kpi .v{font:800 28px/1.1 'Poppins',sans-serif;margin:4px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .n4l-fh .fh-kpi .t{font-size:12px;font-weight:600;color:#6EE7A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .n4l-fh .fh-kpi.warn .v{color:var(--orange);} .n4l-fh .fh-kpi.warn .t{color:#FFB27A;}
    .n4l-fh .fh-strength{margin-top:26px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.26);border-bottom:0;border-radius:18px 18px 0 0;padding:16px 22px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
    .n4l-fh .fh-ring{--p:50;flex:0 0 auto;width:54px;height:54px;border-radius:50%;background:conic-gradient(#FE5F00 calc(var(--p)*1%),rgba(255,255,255,.2) 0);display:flex;align-items:center;justify-content:center;box-shadow:0 0 20px rgba(254,95,0,.45);animation:fhPulse 3s ease-in-out infinite;}
    @keyframes fhPulse{0%,100%{box-shadow:0 0 12px rgba(254,95,0,.35);}50%{box-shadow:0 0 28px rgba(254,95,0,.7);}}
    .n4l-fh .fh-ring b{width:42px;height:42px;border-radius:50%;background:#43194C;display:flex;align-items:center;justify-content:center;font:700 13px 'Poppins',sans-serif;}
    .n4l-fh .fh-strength .tx{flex:1;min-width:220px;}
    .n4l-fh .fh-strength .tx b{display:block;font:700 15px 'Poppins',sans-serif;}
    .n4l-fh .fh-strength .tx span{font-size:12.5px;color:rgba(255,255,255,.86);}
    .n4l-fh .fh-strength a{color:#FFB27A !important;font-weight:700;border-bottom:1.5px solid rgba(255,178,122,.5);cursor:pointer;}
    .n4l-fh .fh-sact .btn{min-height:38px;padding:0 16px;font-size:13px;background:var(--orange);color:#fff !important;border:0;}
    /* body */
    .n4l-fh .fh-in input,.n4l-fh .fh-in select,.n4l-fh .fh-in textarea{width:100%;box-sizing:border-box;border:1.5px solid #E7D8C6;border-radius:13px;background:#FFFDFA;padding:10px 13px;font:500 14px 'Inter',sans-serif;color:var(--ink);outline:0;}
    .n4l-fh .fh-in input:focus,.n4l-fh .fh-in select:focus,.n4l-fh .fh-in textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(42,0,124,.12);}
    .n4l-fh .fh-in textarea{resize:vertical;min-height:110px;}
    /* dialogs */
    .n4l-fh .fh-mod{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(27,19,48,.55);}
    .n4l-fh .fh-mod.open{display:flex;}
    .n4l-fh .fh-dlg{width:100%;max-width:640px;max-height:calc(100vh - 36px);display:flex;flex-direction:column;background:#fff;border-radius:22px;box-shadow:0 40px 80px -30px rgba(27,19,48,.7);overflow:hidden;}
    .n4l-fh .fh-dlg.sm{max-width:460px;}
    .n4l-fh .fh-dh{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #F5EBDF;}
    .n4l-fh .fh-dh h3{font:700 17px 'Poppins',sans-serif;color:var(--purple);margin:0;text-transform:none;}
    .n4l-fh .fh-x{border:0;background:var(--cream-2);width:34px;height:34px;border-radius:10px;font-size:20px;line-height:1;cursor:pointer;color:var(--ink-soft);}
    .n4l-fh .fh-db{padding:18px 22px;overflow-y:auto;}
    .n4l-fh .fh-df{display:flex;gap:10px;justify-content:flex-end;padding:14px 22px;border-top:1px solid #F5EBDF;background:#FFFDFA;}
    .n4l-fh .fh-df .btn{min-height:44px;padding:0 22px;}
    .n4l-fh .fh-note{display:flex;gap:10px;align-items:flex-start;background:#FFF6EC;border:1px solid #FBDDBF;border-radius:14px;padding:12px 14px;font-size:12.5px;color:var(--ink-soft);margin-bottom:14px;line-height:1.5;}
    .n4l-fh .fh-note svg{flex:0 0 auto;color:var(--orange);margin-top:1px;}
    .n4l-fh .fh-err{display:none;margin-top:5px;font-size:12px;font-weight:600;color:#D23C32;}
    .n4l-fh .fh-thx{text-align:center;padding:26px 10px;}
    .n4l-fh .fh-thx .ck{width:76px;height:76px;border-radius:50%;background:#E3F7EC;color:#1E8A52;display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px;}
    .n4l-fh .fh-thx h3{font:800 20px 'Poppins',sans-serif;color:var(--purple);margin:0 0 6px;} .n4l-fh .fh-thx p{color:var(--ink-soft);font-size:14px;margin:0 0 16px;}
    .n4l-fh .fh-toast{position:fixed;left:50%;top:84px;transform:translateX(-50%);z-index:110;background:#14532D;color:#fff;border-radius:14px;padding:11px 18px;font-size:13.5px;font-weight:600;box-shadow:0 18px 40px -16px rgba(0,0,0,.5);display:none;max-width:calc(100% - 24px);}
    .n4l-fh .fh-toast.show{display:block;}
    .n4l-fh .btn[disabled]{opacity:.5;cursor:not-allowed;box-shadow:none;}
    @media(max-width:1279px){.n4l-fh .fh-kpis{display:none;}}
    @media(max-width:1000px){
        .n4l-fh .fh-sact{display:none;}
    }
    @media(max-width:700px){
        .n4l-fh .fh-hero{padding-top:14px;min-height:0;}   /* phone: fit the content, no empty band under the title */
        .n4l-fh .fh-meta span:nth-child(n+2){display:none;}
        .n4l-fh .fh-strength{display:none;}
        .n4l-fh .fh-badge{width:58px;height:58px;border-radius:17px;}
        .n4l-fh .fh-who h1{font-size:21px;margin:4px 0 8px;}
        .n4l-fh .fh-meta{gap:6px 8px;} .n4l-fh .fh-meta span{font-size:12px;padding:3px 10px;}
        .n4l-fh .fh-meta span:nth-child(n+3){display:none;}
        .n4l-fh .fh-actions .btn{min-height:40px;padding:0 14px;}
        .n4l-fh .fh-strength{margin-top:14px;padding:10px 14px;gap:12px;}
        .n4l-fh .fh-strength .tx span{display:none;} .n4l-fh .fh-strength .tx b{font-size:14px;}
        .n4l-fh .fh-floor{height:90px;}
        .n4l-fh .fh-mod{align-items:flex-end;padding:0;}
        .n4l-fh .fh-dlg{max-width:none;border-radius:22px 22px 0 0;max-height:92vh;}
        .n4l-fh .fh-df{padding:12px 18px calc(12px + env(safe-area-inset-bottom));} .n4l-fh .fh-df .btn{flex:1;}
        .n4l-fh .fh-db{padding:16px 18px;}
    }
    /* ambient hero motion (spinning badge ring, grid floor, glow) is kept even with "reduce motion" on, same as the E-Shipments / E-SOA heroes: it is decorative and slow */

    .n4l-fh .fh-body{background:#FFF9F3;padding:30px 0 56px;}
    .n4l-fh .fh-wrap{max-width:560px;margin:0 auto;}
    .n4l-fh .fh-card{background:#fff;border:1px solid #F5EBDF;border-radius:22px;box-shadow:var(--shadow-soft);padding:30px;}
    .n4l-fh .fh-step{display:none;} .n4l-fh .fh-step.on{display:block;}
    .n4l-fh .fh-card h2{font:800 22px 'Poppins',sans-serif;color:var(--purple);margin:0 0 4px;text-transform:none;}
    .n4l-fh .fh-card p.sub{font-size:14px;line-height:1.5;color:var(--ink-soft);margin:0 0 20px;}
    .n4l-fh .fh-f{margin-bottom:16px;}
    .n4l-fh .fh-f label{display:block;font:600 13px 'Inter',sans-serif;color:var(--ink);margin-bottom:6px;}
    .n4l-fh .fh-in{position:relative;}
    .n4l-fh .fh-in input{width:100%;box-sizing:border-box;border:1.5px solid #E7D8C6;border-radius:13px;background:#FFFDFA;padding:12px 46px 12px 14px;font:500 15px 'Inter',sans-serif;color:var(--ink);outline:0;}
    .n4l-fh .fh-in input.plain{padding-right:14px;}
    .n4l-fh .fh-in input:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(42,0,124,.12);}
    .n4l-fh .fh-in input:disabled{background:var(--cream-2);color:var(--ink-soft);}
    .n4l-fh .fh-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;border-radius:10px;color:var(--ink-soft);cursor:pointer;display:flex;align-items:center;justify-content:center;}
    .n4l-fh .fh-eye:hover{background:var(--cream-2);color:var(--purple);}
    .n4l-fh .fh-err{display:none;margin-top:5px;font-size:12px;font-weight:600;color:#D23C32;}
    .n4l-fh .fh-f.err .fh-err{display:block;} .n4l-fh .fh-f.err .fh-in input{border-color:#E0483E;background:#FFF6F5;}
    .n4l-fh .fh-alert{display:none;gap:10px;align-items:flex-start;background:#FFF0EE;border:1px solid #F5C6C0;color:#B23A2E;border-radius:14px;padding:12px 14px;font-size:13.5px;margin-bottom:16px;}
    .n4l-fh .fh-alert.on{display:flex;} .n4l-fh .fh-alert ul{margin:0;padding-left:18px;}
    .n4l-fh .fh-go{width:100%;min-height:48px;font-size:15px;}
    .n4l-fh .fh-center{text-align:center;}
    .n4l-fh .fh-ico{width:84px;height:84px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px;background:#E3F7EC;color:#1E8A52;}
    .n4l-fh .fh-ico.mail{background:var(--cream-2);color:var(--purple);}
    .n4l-fh .fh-center p{color:var(--ink-soft);font-size:14px;margin:0 0 8px;}
    .n4l-fh .fh-center .btn{min-width:180px;min-height:46px;margin-top:12px;}
    .n4l-fh .fh-back{display:inline-block;margin-top:16px;font-size:13px;font-weight:700;color:var(--purple);cursor:pointer;}
    .n4l-fh .fh-mock-unused{margin-top:12px;font-size:12px;color:var(--ink-soft);text-align:center;}
    .n4l-fh .fh-mock code{background:#fff;border:1.5px dashed #E7D8C6;border-radius:8px;padding:2px 8px;font-weight:700;color:var(--purple);}

/* page-loading overlay used by the view's AJAX calls (the original views each carried this rule; hidden until $('#preloader-outer').fadeIn()) */
#preloader-outer{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,.8); display: none; justify-content: center; align-items: center; z-index: 9999; }
#preloader-outer #loading-message{ font-size: 18px; font-weight: bold; color: var(--ink); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* the layout wraps the page in .content (20px white padding above and below); these pages run edge to edge: hero straight under the nav bar, cream body straight into the footer */
body:has(.n4l-fh) .content{ padding: 0 !important; }
/* the legacy .right-panel pushes the page down 86px while the V2 header is a fixed 70px: that left a 16px white strip under the nav bar when logged out (logged in, the layout already sets 70px inline) */
body:has(.n4l-fh) .right-panel{ margin-top: 70px !important; }

/* phone: tighter card and page padding (placed last so it wins over the base rules above) */
@media(max-width:700px){
    .n4l-fh .fh-body{padding:22px 0 40px;}
    .n4l-fh .fh-card{padding:22px 16px;border-radius:18px;}
}

/* "Passwords match" hint under the confirm field (Change Password) */
.n4l-fh .fh-match{display:none;margin-top:5px;font-size:12px;font-weight:600;color:#1E8A52;}
.n4l-fh .fh-match.on{display:block;}

/* centred states (check-your-email / success): icon on its own line, title and text centred underneath it */
.n4l-fh .fh-center{ text-align: center; }
.n4l-fh .fh-center .fh-ico{ display: flex; margin: 0 auto 14px; }
.n4l-fh .fh-center h2{ display: block; width: 100%; margin: 0 0 8px; text-align: center; }
.n4l-fh .fh-center p{ display: block; text-align: center; }
.n4l-fh .fh-center .btn{ margin-left: auto; margin-right: auto; }

/* detail tiles slimmed to ONE short row so they fit the shared hero height (wide screens only; hidden below 1280px as before) */
@media(min-width:1280px){
    .n4l-fh .fh-hero{padding-top:20px;}
    .n4l-fh .fh-hero .fh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 0;}
    .n4l-fh .fh-hero .fh-kpi{padding:8px 14px;border-radius:14px;}
    .n4l-fh .fh-hero .fh-kpi .l{font-size:10.5px;}
    .n4l-fh .fh-hero .fh-kpi .v{font-size:15px !important;line-height:1.3 !important;margin:2px 0 0;}
    .n4l-fh .fh-hero .fh-kpi .t{display:none;}
    .n4l-fh .fh-hero .fh-strength{margin-top:12px;padding:10px 20px;}
    .n4l-fh .fh-hero .fh-ring{width:44px;height:44px;}
    .n4l-fh .fh-hero .fh-ring b{width:34px;height:34px;font-size:12px;}
}
