
:root{
  --auth-navy:#061b35;
  --auth-blue:#145cff;
  --auth-blue2:#0d4df0;
  --auth-text:#071a36;
  --auth-muted:#465873;
  --auth-border:#dce6f2;
  --auth-card:#ffffff;
}
html,body{min-height:100%}
body.auth-common-body{
  margin:0;
  min-height:100vh;
  background:
    linear-gradient(rgba(247,250,255,.68), rgba(247,250,255,.68)),
    url('/assets/images/auth-login-bg.png') center center / cover no-repeat fixed;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  color:var(--auth-text);
}
body.auth-common-body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('/assets/images/auth-login-bg.png') center center/cover no-repeat;
}
body.auth-common-body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:rgba(247,250,255,.68);
}
.auth-shell{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:44px 14px;
  box-sizing:border-box;
  background:transparent!important;
}
.auth-shell.auth-top{
  align-items:flex-start;
}
.auth-card{
  width:min(430px, calc(100vw - 24px));
  background:rgba(255,255,255,.96);
  border:1px solid var(--auth-border);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(15,23,42,.10);
  padding:30px 34px;
  box-sizing:border-box;
  text-align:center;
  backdrop-filter:blur(8px);
}
.auth-card.auth-create{
  width:min(430px, calc(100vw - 24px));
  padding:26px 30px;
}
.auth-card.auth-wide{
  width:min(430px, calc(100vw - 24px));
}
.auth-section-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--auth-navy);
  color:#fff;
  border-radius:5px;
  padding:7px 15px;
  font-size:14px;
  line-height:1;
  font-weight:900;
  box-shadow:0 4px 10px rgba(6,27,53,.18);
  margin:-44px auto 18px;
}
.auth-logo{
  display:block;
  width:145px;
  max-width:72%;
  height:auto;
  margin:0 auto 20px;
}
.auth-card h1,.auth-card h2{
  margin:0 0 8px;
  color:#061b35;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
}
.auth-card p{
  margin:0 0 20px;
  color:var(--auth-muted);
  font-size:13px;
  line-height:1.55;
}
.auth-msg,.auth-err{
  text-align:left;
  padding:12px 13px;
  border-radius:10px;
  margin:0 0 15px;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
}
.auth-msg{background:#effaf1;border:1px solid #bde5c7;color:#166534}
.auth-err{background:#fff1f2;border:1px solid #fecdd3;color:#b42318}
.auth-form{
  display:grid;
  gap:12px;
  text-align:left;
}
.auth-form .row{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.auth-form label{
  display:block;
  font-size:12px;
  color:#334155;
  font-weight:800;
  margin:0 0 5px;
}
.auth-form input,.auth-form select,.auth-form textarea{
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  border:1px solid #dbe5f1;
  border-radius:7px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:13px;
  padding:12px 13px;
  outline:none;
}
.auth-form textarea{min-height:92px;resize:vertical}
.auth-form input:focus,.auth-form select:focus,.auth-form textarea:focus{
  border-color:#7aa7ff;
  box-shadow:0 0 0 3px rgba(20,92,255,.10);
}
.auth-form-row-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0;
}
.auth-check{
  display:flex!important;
  align-items:center;
  gap:8px;
  color:#334155;
  font-size:12px!important;
  font-weight:600!important;
  margin:0!important;
}
.auth-check input{width:auto!important;min-height:auto!important}
.auth-form-row-between a,.auth-mini-links a{
  color:#0f5bff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.auth-btn,.auth-link-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  border-radius:7px;
  padding:12px 15px;
  min-height:43px;
  box-sizing:border-box;
  text-decoration:none!important;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}
.auth-btn{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--auth-blue),var(--auth-blue2));
  box-shadow:0 8px 16px rgba(20,92,255,.18);
}
.auth-link-btn{
  border:1px solid #dbe5f1;
  color:#0f5bff;
  background:#fff;
}
.auth-actions{
  display:grid;
  gap:10px;
  margin-top:4px;
}
.auth-mini-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px 12px;
  margin-top:14px;
  color:#334155;
  font-size:12px;
  text-align:center;
}
.auth-success-icon{
  width:104px;
  height:104px;
  border-radius:50%;
  background:#e9f8ec;
  color:#2da94f;
  display:grid;
  place-items:center;
  font-size:50px;
  margin:10px auto 21px;
}
.auth-note{
  margin-top:16px;
  padding:13px 14px;
  border-radius:10px;
  background:#eef6ff;
  border:1px solid #cfe3ff;
  color:#334155;
  font-size:13px;
  line-height:1.55;
  text-align:left;
}
.auth-topline{
  width:min(430px, calc(100vw - 24px));
  margin:0 auto 14px;
  text-align:left;
}
.auth-topline a{
  color:#0f5bff;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
@media(max-width:640px){
  body.auth-common-body{background-attachment:scroll}
  .auth-shell{padding:30px 12px}
  .auth-card{padding:26px 20px}
  .auth-card.auth-create{padding:24px 20px}
  .auth-form-row-between{flex-direction:column;align-items:flex-start}
}


/* FINAL strict auth compact enforcement */
.auth-grid,.auth-brand,.auth-content,.auth-form-card{
  display:contents!important;
}
body.auth-common-body .auth-shell{
  min-height:100vh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:44px 14px!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
body.auth-common-body .auth-card{
  width:min(430px, calc(100vw - 24px))!important;
  max-width:430px!important;
  min-width:0!important;
  margin:0 auto!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(8px)!important;
}
body.auth-common-body .auth-card.auth-create,
body.auth-common-body .auth-card.auth-wide{
  width:min(430px, calc(100vw - 24px))!important;
  max-width:430px!important;
}
