@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;500;600&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Inter", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at top right, #fff6ee 0%, #f7efe8 40%, #f3ece6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d2230;
}

.login-shell {
  width: min(90vw, 520px);
  padding: 24px;
}

.login-card {
  background: #fffdfb;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(24, 32, 54, 0.12);
  padding: 36px 40px 40px;
  border: 1px solid rgba(24, 32, 54, 0.08);
}

.login-header {
  text-align: left;
  margin-bottom: 28px;
}

.login-logo {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.login-logo span {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #2f3a44;
  font-family: "IBM Plex Serif", "Source Serif 4", serif;
}

.login-header h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-family: "IBM Plex Serif", "Source Serif 4", serif;
  font-weight: 500;
}

.login-header p {
  margin: 0;
  color: #5a6376;
  font-size: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2a3145;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d8d1c8;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.field input:focus {
  border-color: #546bff;
  box-shadow: 0 0 0 3px rgba(84, 107, 255, 0.15);
}

.primary-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #141a2b, #232b47);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(12, 20, 43, 0.2);
}

.link-btn {
  border: none;
  background: none;
  color: #546bff;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: opacity 0.2s ease;
}

.link-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.link-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.status-message {
  min-height: 20px;
  font-size: 14px;
  color: #b14a3b;
  margin-top: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 520px) {
  .login-card {
    padding: 28px;
  }
}
