/* ===== LOGIN PAGE (BLURRED FULLSCREEN BACKGROUND + CENTERED SHELL) ===== */

/* Hide global chrome */
.topbar, .footer { display:none; }

/* Remove default container constraints on login */
.container{
  max-width:none;
  margin:0;
  padding:0;
}

/* Fullscreen page wrapper */
.auth-page{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 18px;
  overflow:hidden;
}

/* Blurred background (same image as inside shell) */
.auth-page::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.55), rgba(2,6,23,0.92)),
    var(--login-bg);
  background-size:cover;
  background-position:center;
  filter: blur(26px);
  transform: scale(1.12);
  z-index:0;
}

/* Optional dark overlay for readability */
.auth-page::after{
  content:"";
  position:fixed;
  inset:0;
  background: rgba(2,6,23,0.35);
  z-index:0;
}

/* ===== Centered shell (the big card) ===== */
.auth-shell{
  position:relative;
  z-index:1;
  width:min(1200px, 100%);
  height: min(680px, calc(100vh - 220px));
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 22px;
  overflow:hidden;

  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 22px 80px rgba(0,0,0,0.55);
  background: rgba(2,6,23,0.55);
}

/* LEFT PANEL */
.auth-shell-left{
  position:relative;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.85), rgba(15,23,42,0.92)),
    var(--login-bg);
  background-size: cover;
  background-position: center;
  padding: 60px;
  display:flex;
  align-items:center; /* vertical center */
}

.auth-left-inner{
  max-width: 520px;
}

.auth-shell-left h1{
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 16px 0;
  font-weight: 900;
  color: #fff;
}

.auth-shell-left p{
  margin:0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.65;
}

/* RIGHT PANEL */
.auth-shell-right{
  background: rgba(2,6,23,0.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px;
}

.auth-card{
  width: 100%;
  max-width: 420px;
  background: rgba(11,18,32,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px;
}

/* Tabs */
.auth-tabs{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.auth-tab{
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.60);
  color: rgba(255,255,255,0.86);
  font-weight: 900;
  border-radius: 12px;
  padding: 10px 12px;
}
.auth-tab.active{
  border-color: rgba(37,99,235,0.75);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.22);
  background: rgba(37,99,235,0.16);
}

/* Text */
.auth-title{
  margin: 8px 0 6px 0;
  font-size: 26px;
  font-weight: 900;
  color:#fff;
}
.auth-subtitle{
  margin: 0 0 16px 0;
  color: rgba(148,163,184,1);
  line-height: 1.5;
}

/* Alerts */
.auth-alert{
  margin: 10px 0 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.55);
  font-weight: 800;
}
.auth-alert.err{
  border-color: rgba(239,68,68,0.45);
  background: rgba(239,68,68,0.12);
}

/* Form */
.auth-label{
  display:block;
  margin-top: 12px;
  font-weight: 900;
  color: rgba(226,232,240,0.95);
}
.auth-input{
  width:100%;
  margin-top:6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(2,6,23,0.85);
  color: rgba(226,232,240,1);
}
.auth-input:focus{
  outline:none;
  border-color: rgba(37,99,235,0.85);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

.auth-submit{
  width:100%;
  margin-top: 18px;
}

.auth-note{
  margin-top: 14px;
  color: rgba(148,163,184,1);
  font-size: 13px;
  line-height: 1.45;
}

/* ===== DEBUG CONSOLE (TEMPORARY) ===== */
.auth-debug-wrap{
  position:relative;
  z-index:1;
  width:min(1200px, 100%);
  margin-top: 14px;
}

.auth-debug-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(239,68,68,0.35);
  border-bottom: none;
  background: rgba(2,6,23,0.65);
  color: rgba(226,232,240,0.95);
  font-weight: 900;
}

.auth-debug-actions{
  display:flex;
  gap:10px;
}

.auth-debug-btn{
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(15,23,42,0.55);
  color: rgba(226,232,240,0.92);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 900;
}

.auth-debug{
  margin:0;
  max-height: 170px;
  overflow:auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(226,232,240,0.95);

  border: 1px solid rgba(239,68,68,0.35);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: rgba(2,6,23,0.72);
  padding: 12px;
}

/* Responsive */
@media (max-width: 980px){
  .auth-shell{
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .auth-shell-left{
    padding: 36px;
    min-height: 220px;
  }
  .auth-shell-left h1{
    font-size: 36px;
  }
}
/* ───────────────────────────────────────────────
   Auth Debug Console (temporary)
   ─────────────────────────────────────────────── */
.auth-debug{
  margin: 18px auto 0;
  width: min(1080px, 92vw);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}

.auth-debug-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.auth-debug-title{
  font-weight: 800;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}

.auth-debug-actions{
  display:flex;
  gap: 8px;
}

.auth-debug-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.auth-debug-btn:hover{
  background: rgba(255,255,255,0.10);
}

.auth-debug-pre{
  margin: 0;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.80);
  white-space: pre-wrap;
}

