@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #ffffff;
  --line: #e5e7eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--soft);
  color: var(--ink);
  font-family: "Inter", "Montserrat", system-ui, -apple-system, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.form-panel {
  width: min(100%, 400px);
}

.form-card {
  width: 100%;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.header-group {
  text-align: center;
  margin-bottom: 32px;
}

.login-prefix {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.oauth-label {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px;
}

.oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.oauth-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}

.oauth-button:hover {
  background: #f9fafb;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #9ca3af;
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 0 16px 0 48px;
  background: #fafafa;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}

input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

input:focus {
  border-color: #d1d5db;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.login-button {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}

.login-button:hover {
  background: #e5e7eb;
}

.footer-links {
  margin-top: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forgot-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

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

.signup-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.signup-copy a {
  color: var(--ink);
  font-weight: 600;
}

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