/* ── Login page (no Tailwind dependency) ── */

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

#boot {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.95rem;
}

#boot.is-hidden,
#login-screen.is-hidden,
#app-shell.is-hidden {
  display: none !important;
}

#login-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  background: #fff;
}

.login-form {
  width: 100%;
  max-width: 420px;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.login-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  position: relative;
}

.login-input {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #0f172a;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input::placeholder {
  color: #64748b;
}

.login-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px #e0f2fe;
}

.login-input--password {
  padding-right: 3rem;
}

.login-toggle-password {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.login-toggle-password:hover {
  color: #475569;
}

.login-toggle-password svg {
  width: 20px;
  height: 20px;
}

.login-forgot-wrap {
  padding-top: 0.15rem;
}

.login-forgot {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
}

.login-forgot:hover {
  color: #0c4a6e;
}

.login-feedback {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.login-feedback.is-hidden {
  display: none;
}

.login-feedback--error {
  color: #dc2626;
}

.login-feedback--info {
  color: #0284c7;
}

.login-btn-primary {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border: none;
  border-radius: 8px;
  background: #0c4a6e;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.login-btn-primary:hover {
  background: #075985;
}

.login-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-divider {
  position: relative;
  margin: 2rem 0;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.login-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.login-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-social-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0c4a6e;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.login-social-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.login-social-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.login-social-icon--apple {
  fill: #000;
}

.login-social-btn span {
  color: #0c4a6e;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .login-logo {
    height: 64px;
  }
}
