:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0f0f0f;
  color: #e0e0e0;
}

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.login-card {
  width: min(400px, 100%);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  padding: 36px 30px;
}

.logo {
  text-align: center;
  margin-bottom: 24px;
}

.logo h1 {
  font-size: 26px;
  font-weight: 700;
  color: #7c5cfc;
  letter-spacing: -0.5px;
}

.logo p {
  margin-top: 6px;
  color: #6b6b6b;
  font-size: 13px;
}

.message {
  display: none;
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.message.show {
  display: block;
}

.message.error {
  background: #2a1010;
  color: #f87171;
  border: 1px solid #5a1a1a;
}

.message.success {
  background: #0f2a1a;
  color: #4ade80;
  border: 1px solid #1a5a2a;
}

.tabs {
  display: flex;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: 0;
  border-radius: 7px;
  padding: 9px;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tab.active {
  background: #2a2a2a;
  color: #e0e0e0;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.hidden {
  display: none;
}

label {
  color: #bbb;
  font-size: 14px;
  font-weight: 500;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.forgot-link {
  font-size: 12px;
  color: #7c5cfc;
  cursor: pointer;
  text-decoration: none;
}

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

input {
  width: 100%;
  border: 1.5px solid #2a2a2a;
  border-radius: 8px;
  background: #0f0f0f;
  color: #e0e0e0;
  font-size: 16px;
  padding: 13px 14px;
}

input:focus {
  outline: none;
  border-color: #7c5cfc;
}

.hint {
  margin-top: -2px;
  font-size: 12px;
  color: #555;
}

.btn {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: #7c5cfc;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: #6a4de0;
}

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

.reset-desc {
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.back-link {
  margin-top: 8px;
  width: 100%;
  border: 0;
  background: none;
  color: #7c5cfc;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #444;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

.btn-google {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.btn-google:hover {
  background: #f0f0f0;
}

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