/* Kamome Airways employee portal — KWGnet */

:root {
  --navy: #051d3f;
  --navy-deep: #031428;
  --cream: #f3eee7;
  --sand: #e4dcd0;
  --muted: #5c6b7a;
  --danger: #b42318;
  --success: #0f6b4c;
  --white: #ffffff;
  --radius: 18px;
  --control-radius: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
}

header {
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.1rem;
}

.brand svg {
  width: 32px;
  height: 32px;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 3rem;
}

.card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  text-align: center;
}

.lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 0.97rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
}

.field input {
  height: 48px;
  padding: 0 0.9rem;
  border: none;
  border-radius: var(--control-radius);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(5, 29, 63, 0.14);
  color: var(--navy);
  font: inherit;
  font-size: 0.97rem;
}

.field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
  margin: 0.25rem 0;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 1.5rem);
  height: 1px;
  background: rgba(5, 29, 63, 0.1);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.btn {
  height: 48px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0 1.25rem;
  transition: transform 0.05s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--navy);
  color: var(--white);
}

.btn.secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  text-align: center;
  min-height: 1.25em;
}

.success {
  color: var(--success);
  font-size: 0.85rem;
  text-align: center;
}

.authed {
  text-align: center;
}

.authed p {
  margin: 0 0 1.25rem;
}

.authed .btn {
  margin-bottom: 0.5rem;
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem 1.25rem;
  }
}
