/*
  Student auth pages (login / register)
  Keep this file limited to auth UIs to avoid impacting the dashboard styling.
*/

:root{
  --bg: #0b1220;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .12);
  --shadow: 0 18px 50px rgba(2, 6, 23, .22);
  --radius: 14px;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --danger: #b42318;
  --danger-bg: rgba(180, 35, 24, .08);
  --ok: #027a48;
  --ok-bg: rgba(2, 122, 72, .08);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body.student-body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 20% 10%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(800px 420px at 90% 30%, rgba(99, 102, 241, .25), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(14, 165, 233, .18), transparent 55%),
    var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px;
}

/* ===== Auth layout ===== */

.auth-page{
  width: 100%;
  max-width: 980px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 920px){
  .auth-page{ grid-template-columns: 1fr; }
}

.auth-hero{
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-badge{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(37, 99, 235, .28);
  display:flex;
  align-items:center;
  justify-content:center;
  color: #dbeafe;
  font-weight: 800;
  letter-spacing: .5px;
}

.brand-title{
  margin:0;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.brand-sub{
  margin:0;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.35;
}

.hero-title{
  margin: 18px 0 8px;
  font-size: 20px;
  font-weight: 850;
  color: rgba(255,255,255,.92);
}

.hero-text{
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}

.hero-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  line-height: 1.6;
}

.auth-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display:flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card h1{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.auth-card .subtitle{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.alert{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
}

.alert--danger{
  border-color: rgba(180, 35, 24, .22);
  background: var(--danger-bg);
  color: var(--danger);
}

.alert--ok{
  border-color: rgba(2, 122, 72, .22);
  background: var(--ok-bg);
  color: var(--ok);
}

.form-grid{
  display:grid;
  gap: 12px;
}

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.field-label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, .82);
}

.input{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.form-actions{
  display:flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, opacity .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  color: #fff;
  flex: 1;
}
.btn-primary:hover{ background: var(--primary-600); }

.btn-soft{
  background: rgba(15, 23, 42, .06);
  color: rgba(15, 23, 42, .86);
  border: 1px solid var(--border);
}
.btn-soft:hover{ background: rgba(15, 23, 42, .08); }

.auth-footer{
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-footer a{
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.auth-footer a:hover{ text-decoration: underline; }

.small-note{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
