/*
 * Self-contained styles for the standalone login bundle. Lifted from
 * app/globals.css (the .auth-* / .ctrl-input / .btn-primary rules) so this
 * bundle has zero dependency on the app's CSS or Tailwind. Keep visually in
 * sync with globals.css if the app's login look changes.
 */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --bg:     #070a1c;
  --s2:     rgba(13, 20, 52, 0.72);
  --b-mid:  rgba(80, 120, 230, 0.18);
  --t1:     #dde8ff;
  --t3:     rgba(140, 172, 235, 0.36);
  --blue:   #2d6ef0;
  --cyan:   #00d4e8;
  --font:   'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm:   8px;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

.auth-screen {
  height: 100vh; width: 100vw;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(18,52,160,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(0,170,220,0.12) 0%, transparent 55%),
    var(--bg);
}
.auth-card {
  width: 340px;
  background: rgba(9,14,38,0.96);
  border: 1px solid rgba(80,120,230,0.22);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 60px rgba(45,110,240,0.10);
  display: flex; flex-direction: column; gap: 12px;
}
.auth-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.auth-title { font-size: 20px; font-weight: 800; color: var(--t1); letter-spacing: -0.4px; }
.auth-sub { font-size: 11px; color: var(--t3); margin-top: 3px; letter-spacing: 0.3px; }
.auth-error {
  font-size: 11.5px; color: #f87171;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-sm); padding: 8px 11px;
}
.auth-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(45,110,240,0.15);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tb-logo-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(45, 110, 240, 0.5), 0 0 6px rgba(0, 212, 232, 0.3);
}

.form-group { margin-bottom: 10px; }
.form-group:last-of-type { margin-bottom: 0; }

.ctrl-input {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--b-mid);
  border-radius: var(--r-sm);
  color: var(--t1);
  font-family: var(--font);
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.ctrl-input:focus {
  border-color: rgba(45, 110, 240, 0.55);
  box-shadow: 0 0 0 2px rgba(45, 110, 240, 0.13), 0 0 12px rgba(45, 110, 240, 0.08);
}
.ctrl-input::placeholder { color: var(--t3); }

.btn-primary {
  width: 100%; padding: 8px 0; border-radius: var(--r-sm); border: none;
  background: var(--blue); color: #fff; font-family: var(--font);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 0 14px rgba(45, 110, 240, 0.35);
}
.btn-primary:hover { background: #3b7fff; box-shadow: 0 0 22px rgba(45, 110, 240, 0.55); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
