/* =========================================================
   IMAGIA REPORT — AUTH CSS (ULTRA PREMIUM)
   Portée : UNIQUEMENT /imagia-gateway/auth/
   Police : Inter
   Aucun impact métier / JS
========================================================= */

:root{
  --bg0:#050807;
  --bg1:#07110d;

  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.12);

  --txt:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);

  --olive:#0f5a3b;
  --olive2:#0b3f2b;

  --ocean:#1c7fb6;
  --ocean2:#166795;

  --shadow:0 18px 50px rgba(0,0,0,.45);

  --r:22px;
}

/* Reset minimal */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--txt);
  background:
    radial-gradient(1100px 650px at 18% 12%, rgba(15,90,59,.28), transparent 58%),
    radial-gradient(900px 650px at 86% 22%, rgba(28,127,182,.16), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Layout */
.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}

.auth-card{
  width:min(520px,100%);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  box-shadow:var(--shadow);
  padding:22px;
  position:relative;
  overflow:hidden;
}

.auth-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(560px 240px at 12% 0%, rgba(15,90,59,.32), transparent 60%);
  pointer-events:none;
}

/* Brand */
.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  position:relative;
  z-index:1;
}

.auth-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(180deg, var(--olive), var(--olive2));
  border:1px solid rgba(255,255,255,.10);
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.2px;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}

.auth-title{
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:13px;
}

.auth-sub{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

/* Body */
.auth-body{
  position:relative;
  z-index:1;
}

.auth-h1{
  font-size:20px;
  font-weight:900;
  margin:0 0 6px 0;
}

.auth-hint{
  font-size:13px;
  color:var(--muted);
  margin-bottom:14px;
  line-height:1.5;
}

/* Form */
label{
  display:block;
  margin:12px 0 6px;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}

input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--txt);
  font-size:14px;
  font-family:inherit;
}

input::placeholder{
  color:rgba(255,255,255,.45);
}

input:focus{
  outline:none;
  border-color:rgba(28,127,182,.6);
  box-shadow:0 0 0 4px rgba(28,127,182,.14);
}

input.otp{
  letter-spacing:.25em;
  text-align:center;
}

/* Actions */
.auth-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

button{
  flex:1;
  border-radius:16px;
  padding:12px 16px;
  font-size:13px;
  font-weight:900;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
}

#btnLogin,
#btnVerify{
  color:#fff;
  background:linear-gradient(180deg, var(--ocean), var(--ocean2));
  border-color:rgba(28,127,182,.45);
}

button.secondary{
  background:rgba(255,255,255,.06);
  color:var(--txt);
}

/* Foot / messages */
.auth-foot{
  margin-top:14px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

.err{
  margin-top:12px;
  font-size:12.5px;
  font-weight:800;
  color:#ffb4b4;
  white-space:pre-wrap;
}

.ok{
  margin-top:12px;
  font-size:12.5px;
  font-weight:800;
  color:#bfffdc;
  white-space:pre-wrap;
}

.hide{display:none}
