/* Orange IT Solutions – Login / Portal screens */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
:root{ --o1:#F0913A; --o2:#F6AE63; --od:#D97A22; --odeep:#B45F1A; --ink:#1f2937; --mut:#6b7280; }
*{ box-sizing:border-box; }
html,body{ height:100%; }
body.auth-body{
  margin:0; font-family:'Poppins','Segoe UI',system-ui,Arial,sans-serif; color:var(--ink);
  background:#fff; overflow-x:hidden;
}
.auth-shell{ display:grid; grid-template-columns:1.1fr 1fr; min-height:100vh; }

/* ---- Hero / brand side ---- */
.auth-hero{
  position:relative; isolation:isolate; overflow:hidden; color:#fff;
  background:#B45F1A url('../images/hero.jpg') center/cover no-repeat;
  display:flex; align-items:center; padding:48px clamp(28px,5vw,72px);
}
.auth-hero::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background:linear-gradient(145deg,rgba(180,95,26,.93) 0%,rgba(240,145,58,.88) 55%,rgba(246,174,99,.80) 100%);
}
.auth-hero::after{ /* plot-grid pattern */
  content:""; position:absolute; inset:0; z-index:-1; opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.7) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.7) 1px,transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(circle at 20% 80%,#000 0%,transparent 70%);
          mask-image:radial-gradient(circle at 20% 80%,#000 0%,transparent 70%);
}
.blob{ position:absolute; border-radius:50%; z-index:-1; filter:blur(2px); animation:floaty 9s ease-in-out infinite; }
.blob.b1{ width:260px; height:260px; right:-70px; top:-70px; background:rgba(255,255,255,.14); }
.blob.b2{ width:170px; height:170px; left:8%; bottom:-50px; background:rgba(255,255,255,.12); animation-delay:-3s; }
.blob.b3{ width:90px; height:90px; right:18%; bottom:22%; background:rgba(255,255,255,.18); animation-delay:-6s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-22px) } }

.auth-hero-inner{ max-width:560px; animation:rise .9s ease both; }
@keyframes rise{ from{ opacity:0; transform:translateY(24px) } to{ opacity:1; transform:none } }
.auth-logo{
  display:inline-flex; background:#fff; padding:12px 20px; border-radius:18px;
  box-shadow:0 14px 34px rgba(0,0,0,.22); margin-bottom:34px;
}
.auth-logo img{ height:46px; width:auto; display:block; }
.auth-hero h1{ font-size:clamp(1.9rem,3.4vw,3rem); line-height:1.15; font-weight:700; margin:0 0 14px; letter-spacing:-.02em; }
.auth-hero h1 span{ display:block; color:#fff3e0; font-weight:800; }
.auth-hero p.lead{ font-size:1.02rem; opacity:.94; line-height:1.7; max-width:480px; margin:0 0 26px; }
.auth-points{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; }
.auth-points li{
  display:flex; align-items:center; gap:10px; font-size:.88rem; font-weight:500;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  padding:10px 14px; border-radius:14px;
}
.auth-points i{ width:30px; height:30px; border-radius:9px; background:rgba(255,255,255,.22); display:inline-flex; align-items:center; justify-content:center; font-size:.85rem; }

/* ---- Form side ---- */
.auth-panel{
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:34px 22px;
  background:
    radial-gradient(520px 320px at 100% 0%,rgba(246,174,99,.16),transparent 70%),
    radial-gradient(420px 300px at 0% 100%,rgba(240,145,58,.10),transparent 70%), #fffaf5;
}
.auth-card{
  width:100%; max-width:430px; background:#fff; border-radius:26px; padding:38px 34px 30px;
  box-shadow:0 30px 70px rgba(217,122,34,.16), 0 4px 14px rgba(17,24,39,.06);
  border:1px solid #ffe4cc; animation:rise .8s .15s ease both;
}
.auth-icon{
  width:66px; height:66px; border-radius:20px; margin:-72px auto 16px;
  background:linear-gradient(135deg,#F0913A,#F6AE63); color:#fff; font-size:1.7rem;
  display:flex; align-items:center; justify-content:center; box-shadow:0 14px 28px rgba(240,145,58,.42);
}
.auth-card h2{ text-align:center; font-size:1.55rem; font-weight:700; margin:0 0 4px; }
.auth-sub{ text-align:center; color:var(--mut); font-size:.88rem; margin:0 0 24px; }
.auth-field{ position:relative; margin-bottom:6px; }
.auth-field > i.lead-ic{
  position:absolute; left:16px; top:15px; color:var(--o1); font-size:.95rem; pointer-events:none; z-index:2;
}
.auth-field input.form-control,
.auth-field input[type=text],.auth-field input[type=password]{
  width:100%; height:50px; border:1.5px solid #e5e7eb; border-radius:14px; background:#fafafa;
  padding:0 46px 0 44px; font-size:.95rem; color:var(--ink); transition:.2s; outline:0; font-family:inherit;
}
.auth-field input:focus{ border-color:var(--o1); background:#fff; box-shadow:0 0 0 4px rgba(240,145,58,.15); }
.auth-field .eye{
  position:absolute; right:10px; top:7px; width:36px; height:36px; border:0; background:transparent;
  color:#9ca3af; border-radius:10px; cursor:pointer; z-index:2;
}
.auth-field .eye:hover{ color:var(--od); background:#fff3e8; }
.auth-error{ display:block; color:#dc2626; font-size:.78rem; font-weight:500; margin:4px 4px 8px; min-height:0; }
.auth-field-wrap{ margin-bottom:8px; }
.auth-btn,
input.auth-btn{
  width:100%; height:52px; margin-top:10px; border:0; border-radius:14px; cursor:pointer;
  background:linear-gradient(135deg,#F0913A,#F6AE63); color:#fff; font-weight:600; font-size:1rem; letter-spacing:.02em;
  font-family:inherit; box-shadow:0 14px 26px rgba(240,145,58,.38); transition:transform .15s, box-shadow .2s, filter .2s;
}
.auth-btn:hover{ transform:translateY(-2px); box-shadow:0 18px 32px rgba(240,145,58,.46); filter:brightness(1.04); }
.auth-btn:active{ transform:translateY(0); }
.auth-links{ display:flex; justify-content:space-between; align-items:center; margin-top:18px; font-size:.85rem; gap:10px; flex-wrap:wrap; }
.auth-links a{ color:var(--od); text-decoration:none; font-weight:500; }
.auth-links a:hover{ text-decoration:underline; color:var(--odeep); }
.auth-msg{ display:block; text-align:center; margin-top:14px; font-size:.86rem; font-weight:500; color:#dc2626; }
.auth-msg:empty{ display:none; }
.auth-foot{ margin-top:26px; font-size:.78rem; color:var(--mut); text-align:center; }
.auth-foot a{ color:var(--od); font-weight:600; text-decoration:none; }

/* ---- Portal (Index) ---- */
.portal{ min-height:100vh; position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; align-items:center; padding:36px 18px 28px; color:#fff;
  background:#B45F1A url('../images/hero.jpg') center/cover fixed no-repeat; }
.portal::before{ content:""; position:absolute; inset:0; z-index:-2;
  background:linear-gradient(160deg,rgba(180,95,26,.94),rgba(240,145,58,.86) 55%,rgba(246,174,99,.80)); }
.portal::after{ content:""; position:absolute; inset:0; z-index:-1; opacity:.14;
  background-image:linear-gradient(rgba(255,255,255,.8) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.8) 1px,transparent 1px); background-size:48px 48px; }
.portal .auth-logo{ margin-bottom:26px; }
.portal h1{ font-size:clamp(1.7rem,4vw,2.8rem); font-weight:700; text-align:center; margin:0 0 8px; letter-spacing:-.02em; }
.portal h1 span{ color:#fff3e0; font-weight:800; }
.portal p.lead{ text-align:center; max-width:560px; opacity:.94; margin:0 auto 38px; line-height:1.7; }
.role-grid{ width:100%; max-width:1180px; display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:20px; }
.role-card{
  display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; color:var(--ink);
  background:rgba(255,255,255,.96); border-radius:24px; padding:30px 18px 24px;
  box-shadow:0 22px 46px rgba(120,40,0,.28); transition:transform .3s, box-shadow .3s; position:relative; overflow:hidden;
}
.role-card::before{ content:""; position:absolute; left:0; right:0; top:0; height:5px; background:linear-gradient(90deg,#F0913A,#F8C187); }
.role-card:hover{ transform:translateY(-10px); box-shadow:0 30px 60px rgba(120,40,0,.4); color:var(--ink); }
.role-ic{
  width:72px; height:72px; border-radius:22px; margin-bottom:16px; font-size:1.8rem; color:#fff;
  background:linear-gradient(135deg,#F0913A,#F6AE63); display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 26px rgba(240,145,58,.4); transition:transform .3s;
}
.role-card:hover .role-ic{ transform:rotate(-6deg) scale(1.08); }
.role-card h2{ font-size:1.05rem; font-weight:600; margin:0 0 4px; }
.role-card small{ color:var(--mut); font-size:.78rem; margin-bottom:18px; }
.role-btn{ margin-top:auto; padding:9px 26px; border-radius:30px; font-weight:600; font-size:.88rem; color:#fff;
  background:linear-gradient(135deg,#F0913A,#F6AE63); box-shadow:0 10px 20px rgba(240,145,58,.35); }
.portal .auth-foot{ color:#fff3e0; margin-top:44px; }
.portal .auth-foot a{ color:#fff; text-decoration:underline; }

/* ---- Responsive ---- */
@media (max-width:991.98px){
  .auth-shell{ grid-template-columns:1fr; min-height:100vh; }
  .auth-hero{ padding:30px 22px 86px; }
  .auth-hero p.lead,.auth-points{ display:none; }
  .auth-hero h1{ font-size:1.55rem; margin:0; }
  .auth-logo{ margin-bottom:18px; padding:9px 16px; } .auth-logo img{ height:38px; }
  .auth-panel{ padding:0 18px 30px; margin-top:-56px; background:transparent; }
  .auth-card{ margin-top:72px; }
  .auth-icon{ margin-top:-72px; }
}
@media (max-width:480px){
  .auth-card{ padding:34px 20px 24px; border-radius:22px; }
  .auth-points{ grid-template-columns:1fr; }
  .role-grid{ grid-template-columns:1fr 1fr; gap:14px; }
  .role-card{ padding:22px 10px 18px; border-radius:20px; }
  .role-ic{ width:58px; height:58px; font-size:1.4rem; border-radius:18px; }
  .role-card h2{ font-size:.92rem; }
}
@media (max-width:340px){ .role-grid{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition:none !important; } }
