/* Public login shell — served from site root (not /assets/).
   Mirrors the old React LoginPage design: brand-blue gradient, glass card. */
:root {
  --brand-blue: #005d84;
  --brand-purple: #5b2d86;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
}

.shell-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #4b5563;
  background: #f9fafb;
}

.shell-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--brand-blue);
  border-top-color: transparent;
  border-radius: 9999px;
  animation: shell-spin 0.8s linear infinite;
}

@keyframes shell-spin {
  to { transform: rotate(360deg); }
}

.shell-login {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue) 55%, var(--brand-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

.shell-lang {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.shell-lang:hover {
  background: rgba(255, 255, 255, 0.2);
}

.shell-content {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.shell-logo {
  width: 12rem;
  height: 12rem;
  margin: 0 auto 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shell-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.shell-sub {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.shell-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shell-error {
  background: rgba(196, 18, 48, 0.85);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: left;
}

.shell-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 1rem;
  background: #fff;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.1s;
}

.shell-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.shell-btn:active {
  transform: scale(0.98);
}

.shell-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}
