:root{
  --green-950:#073c32;
  --green-900:#0a473a;
  --green-800:#0c5848;
  --cream:#f5f1e8;
  --paper:#fffdf9;
  --ink:#0f1d2c;
  --muted:#69727c;
  --line:#d9ddd8;
  --orange:#d76631;
  --shadow:0 24px 70px rgba(14,32,28,.12);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--cream)}
button,input{font:inherit}
button,a{transition:.2s ease}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,34vw) 1fr}
.brand-panel{position:relative;min-height:100vh;overflow:hidden;color:white;background:var(--green-950)}
.brand-photo{position:absolute;inset:0;background:url("../assets/images/lisboa.jpg") center center/cover no-repeat;filter:saturate(.92) contrast(1.04);transform:scale(1.01)}
.brand-overlay{position:absolute;inset:0;background:
  radial-gradient(circle at 80% 33%,transparent 0 12%,rgba(255,255,255,.12) 12.1% 12.3%,transparent 12.4% 19%,rgba(255,255,255,.10) 19.1% 19.3%,transparent 19.4%),
  linear-gradient(180deg,rgba(5,55,45,.80) 0%,rgba(5,55,45,.66) 50%,rgba(5,55,45,.91) 100%)}
.brand-content{position:relative;z-index:1;min-height:100vh;padding:46px 54px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:16px;text-decoration:none;color:#fff;width:max-content}
.brand-logo{width:66px;height:66px;object-fit:contain}
.brand strong{display:block;font-family:"Playfair Display",serif;font-size:30px;line-height:1}
.brand small{display:block;margin-top:7px;font-size:14px;opacity:.82}
.brand-copy{margin:auto 0}
.eyebrow{font-size:12px;letter-spacing:.18em;color:#ff9a5f;font-weight:700}
.eyebrow i{display:inline-block;width:30px;border-top:2px solid var(--orange);margin-right:10px;vertical-align:middle}
.brand-copy h1{font-family:"Playfair Display",serif;font-size:clamp(50px,5.2vw,82px);line-height:.98;margin:25px 0 24px;max-width:640px;letter-spacing:-.035em}
.brand-copy h1 em{font-style:normal}
.brand-copy h1 em::after{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--orange);margin-left:5px}
.brand-copy p{max-width:500px;font-size:18px;line-height:1.6;color:rgba(255,255,255,.82)}
.lusophone-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;max-width:530px}
.lusophone-strip span{font-size:11px;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.06)}
.brand-footer{display:flex;gap:10px;align-items:center;font-family:"Playfair Display",serif;font-size:18px;margin-top:28px}
.globe{font-family:Arial,sans-serif;font-size:23px}
.auth-panel{min-height:100vh;background:
  linear-gradient(rgba(9,72,58,.028) 1px,transparent 1px),
  linear-gradient(90deg,rgba(9,72,58,.028) 1px,transparent 1px),
  #f8f5ee;background-size:42px 42px;display:flex;flex-direction:column;padding:34px 6vw 30px}
.topbar{height:54px;display:flex;justify-content:flex-end}
.support-link{display:flex;align-items:center;gap:9px;padding:11px 15px;color:var(--ink);text-decoration:none;border:1px solid #bcc4c1;border-radius:7px;background:rgba(255,255,255,.55)}
.support-link img{width:22px;height:22px;object-fit:contain}
.auth-card{width:min(650px,100%);margin:auto;background:rgba(255,253,249,.96);border:1px solid #dfe2dc;border-radius:10px;padding:46px 58px 34px;box-shadow:var(--shadow)}
.accent-line{width:40px;height:3px;background:var(--orange);margin-bottom:34px}
.stepper{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:start;gap:10px;margin-bottom:38px}
.stepper>i{height:1px;background:#d2d6d2;margin-top:20px}
.step{text-align:center;color:#8d949b}
.step span{margin:auto;width:40px;height:40px;border:1px solid #cfd5d2;border-radius:50%;display:grid;place-items:center;font-weight:700;background:#fff}
.step small{display:block;margin-top:8px;font-size:12px}
.step.is-active{color:var(--green-900)}
.step.is-active span{background:var(--green-900);color:#fff;border-color:var(--green-900);box-shadow:0 5px 18px rgba(10,71,58,.2)}
.step.is-complete span{background:#dfece7;color:var(--green-900);border-color:#c2d7ce}
.auth-step{display:none}
.auth-step.is-active{display:block;animation:fadeIn .25s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.step-kicker{font-size:11px;letter-spacing:.15em;color:#7b8287;font-weight:700}
.auth-step h2{font-family:"Playfair Display",serif;font-size:39px;line-height:1.1;letter-spacing:-.025em;margin:10px 0 10px}
.auth-step header p{color:var(--muted);margin:0 0 30px;line-height:1.55}
label{display:block;font-weight:700;font-size:14px;margin:0 0 9px}
.input-wrap{height:58px;border:1px solid #ccd3d0;border-radius:6px;background:#fff;display:flex;align-items:center;padding:0 15px;gap:12px}
.input-wrap:focus-within{border-color:var(--green-800);box-shadow:0 0 0 3px rgba(12,88,72,.08)}
.input-wrap img{width:22px;height:22px;object-fit:contain}
.input-wrap input{border:0;outline:0;flex:1;min-width:0;background:transparent;font-size:15px;color:var(--ink)}
.eye-btn{border:0;background:transparent;font-size:18px;color:#3e5350;cursor:pointer}
.primary{width:100%;border:0;border-radius:5px;background:linear-gradient(100deg,var(--green-900),#0b5d4b);color:#fff;min-height:56px;margin-top:22px;padding:0 20px;font-weight:700;display:flex;justify-content:center;align-items:center;gap:12px;cursor:pointer;box-shadow:0 8px 18px rgba(8,73,59,.16)}
.primary:hover{transform:translateY(-1px);filter:brightness(1.03)}
.primary:disabled{opacity:.5;cursor:not-allowed;transform:none}
.security-note{font-size:13px;color:#707980;line-height:1.5;margin:22px 0 0;display:flex;gap:10px}
.otp{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.otp input{width:100%;height:58px;border:1px solid #ccd3d0;border-radius:6px;background:#fff;text-align:center;font-size:20px;outline:none}
.otp input:focus{border-color:var(--green-800);box-shadow:0 0 0 3px rgba(12,88,72,.08)}
.meta-row{display:flex;justify-content:space-between;gap:16px;margin-top:13px}
.text-btn,.back-link{border:0;background:none;color:var(--green-800);padding:0;cursor:pointer;text-decoration:underline;font-size:13px}
.back-link{display:block;margin:20px auto 0;text-decoration:none}
.feedback{min-height:20px;font-size:13px;color:var(--muted);margin:12px 0 0}
.card-footer{border-top:1px solid #d9ddd8;margin-top:28px;padding-top:24px;text-align:center}
.back-portal{text-decoration:none;color:var(--ink);font-size:14px}
.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;width:min(900px,100%);margin:32px auto 0}
.trust-row article{display:flex;align-items:center;gap:13px;padding:0 10px;border-right:1px solid #d8dbd6}
.trust-row article:last-child{border-right:0}
.trust-row img{width:32px;height:32px;object-fit:contain}
.trust-row strong,.trust-row span{display:block}
.trust-row strong{font-size:13px}
.trust-row span{font-size:11px;color:#7a8289;margin-top:2px}

@media (max-width:1050px){
  .auth-shell{grid-template-columns:1fr}
  .brand-panel{min-height:440px}
  .brand-content{min-height:440px;padding:30px 34px}
  .brand-copy{margin:55px 0 25px}
  .brand-copy h1{font-size:52px;max-width:650px}
  .lusophone-strip{display:none}
  .brand-footer{margin-top:auto}
  .auth-panel{padding:30px 24px 40px}
}
@media (max-width:680px){
  .brand-panel{min-height:360px}
  .brand-content{min-height:360px;padding:24px}
  .brand-logo{width:50px;height:50px}
  .brand strong{font-size:23px}
  .brand-copy{margin:45px 0 0}
  .brand-copy h1{font-size:42px}
  .brand-copy p{font-size:15px}
  .brand-footer{display:none}
  .topbar{height:auto;margin-bottom:18px}
  .support-link{font-size:13px}
  .auth-card{padding:32px 22px 26px}
  .auth-step h2{font-size:31px}
  .stepper{margin-bottom:30px}
  .trust-row{grid-template-columns:1fr}
  .trust-row article{border-right:0;border-bottom:1px solid #d8dbd6;padding:12px 0}
  .trust-row article:last-child{border-bottom:0}
}
