/* ============================================================
   Bluestron Institute — Auth Layout Styles
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #0d1b6e 0%, #1a2d9e 50%, #0a1558 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  height: 56px;
  width: auto;
  margin: 0 auto .5rem;
  display: block;
}

.auth-logo-caption {
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 500;
  margin-top: .35rem;
  letter-spacing: .02em;
}

.auth-card {
  background: #fff;
  border-radius: .875rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

.auth-card-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.auth-card-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d1b6e;
  margin-bottom: .3rem;
}

.auth-card-header p {
  font-size: .875rem;
  color: #6b7280;
}

.auth-card-body { padding: 1.25rem 2rem 2rem; }

.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .4rem;
}

.form-control {
  width: 100%;
  padding: .6rem .9rem;
  font-size: .875rem;
  font-family: inherit;
  border: 1.5px solid #e5e7eb;
  border-radius: .5rem;
  color: #111827;
  transition: border-color .2s;
  line-height: 1.5;
}
.form-control:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-control.error { border-color: #e63946; }

.form-error { font-size: .78rem; color: #e63946; margin-top: .3rem; }
.form-hint  { font-size: .75rem; color: #9ca3af; margin-top: .3rem; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-danger   { background: #fff1f2; border-color: #fca5a5; color: #991b1b; }
.alert-success  { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-warning  { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-info     { background: #f0f9ff; border-color: #7dd3fc; color: #075985; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: .5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}
.btn-primary:hover { background: #1648c7; }

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: #6b7280;
}
.auth-footer a { color: #1a56db; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: #9ca3af;
  font-size: .8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e5e7eb;
}

.lockout-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #92400e;
  margin-bottom: 1rem;
  text-align: center;
}

/* --- Bluestron sign-in refresh --- */
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(255, 91, 38, .16), transparent 34%),
    radial-gradient(ellipse at 88% 84%, rgba(62, 68, 112, .2), transparent 32%),
    linear-gradient(135deg, #090b16 0%, #111426 54%, #0c0e1a 100%);
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
}
body::before { top: -260px; right: -100px; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 82px rgba(255,255,255,.02); }
body::after { bottom: -310px; left: -180px; width: 500px; height: 500px; box-shadow: 0 0 0 44px rgba(255,255,255,.025); }
.auth-wrapper { position: relative; z-index: 1; max-width: 440px; }
.auth-logo { margin-bottom: 1.55rem; }
.auth-logo img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  margin: 0 auto .75rem;
  padding: .5rem .85rem;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.auth-logo-text { font-size: .95rem; letter-spacing: .01em; }
.auth-logo-caption { margin-top: .25rem; color: rgba(237, 245, 255, .62); font-size: .75rem; }
.auth-card {
  position: relative;
  background: #121528;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff5b26, #ff9a57);
}
.auth-card-header { padding-top: 1.8rem; }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .85rem;
  padding: .33rem .62rem;
  border-radius: 999px;
  background: rgba(255, 91, 38, .13);
  color: #ff9a75;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.auth-kicker svg { width: 13px; height: 13px; }
.auth-card-header h1 { color: #f3f3f6; font-size: 1.55rem; letter-spacing: -.035em; }
.auth-card-header p { color: #a0a3b2; }
.auth-card-body { padding-top: 1.25rem; }
.form-label { color: #e2e3e9; }
.form-control { min-height: 46px; border-color: #2b2e43; border-radius: .65rem; background: #0d1020; color: #f3f3f6; }
.form-control:focus { background: #0d1020; border-color: #ff5b26; box-shadow: 0 0 0 3px rgba(255,91,38,.15); }
.btn-primary { min-height: 46px; border-radius: .65rem; background: #ff5b26; border-color: #ff5b26; box-shadow: 0 5px 12px rgba(255,91,38,.2); }
.btn-primary:hover { background: #e94a17; border-color: #e94a17; }
.auth-footer { color: rgba(235, 243, 255, .66); }
.auth-footer a { color: #ff9a75; }
@media (max-width: 480px) {
  body { padding: 1rem; }
  .auth-card-header { padding-inline: 1.35rem; }
  .auth-card-body { padding: 1.1rem 1.35rem 1.4rem; }
}
