:root {
  --brand: #2d7df6;
  --brand-d: #1d5fd6;
  --teal: #22b8c8;
  --line: #e2e5e9;
  --muted: #64748b;
  --ink: #222;
}

/* Reset-ish */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* Base body */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, #eef5ff 0, #f9fbff 40%, #ffffff 100%);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* Card/container */
.container {
  width: 90%;
  max-width: 400px;
  text-align: center;
  background: #ffffff;
  padding: 32px 24px 28px;
  border-radius: 18px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.12);
}

/* Logo */
.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0;
}

.logo span {
  color: var(--teal);
}

/* Titles */
h1 {
  margin: 0;
}

h2 {
  margin-top: 1rem;
  font-weight: 700;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Screen-reader-only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inputs */
input[type="email"],
input[type="password"] {
  padding: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* Button */
button {
  padding: 0.9rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

button:hover {
  background: var(--brand-d);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

/* Links */
.forgot-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.signup-text {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.signup-text a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.signup-text a:hover {
  text-decoration: underline;
}

/* Status message */
.status {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.status.error {
  color: #b91c1c;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--brand);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Small screens */
@media (max-width: 480px) {
  .container {
    padding: 26px 18px 22px;
  }

  .logo {
    font-size: 1.8rem;
  }
}
