@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap');

:root {
  --background: #141414;
  --foreground: #ebebeb;
  --text-primary: #d4d4d8;
  --text-secondary: #737373;
  --border-color: #404040;
  --border-subtle: #262626;
  --hover-bg: rgba(64, 64, 64, 0.2);
  --font-geist-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-geist-mono: "Geist Mono", monospace;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-container {
  width: min(400px, 90vw);
  padding: 2rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.back-link {
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
}

input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: var(--text-primary);
  font-family: var(--font-geist-sans);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.15s ease;
}

input::placeholder {
  color: var(--text-secondary);
}

input:focus {
  border-color: var(--text-secondary);
  background: var(--hover-bg);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-button {
  width: 100%;
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-geist-mono);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.5rem;
}

.login-button:hover:not(:disabled) {
  background: var(--border-subtle);
  border-color: var(--text-secondary);
}

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

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-geist-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 1rem;
}

.google-button:hover {
  background: var(--hover-bg);
  border-color: var(--text-secondary);
}

.forgot-link {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-geist-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.forgot-link a {
  color: var(--text-primary);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.forgot-link a:hover {
  color: var(--foreground);
}

.auth-foot {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-geist-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.auth-foot.top {
  margin: 0;
  text-align: left;
}

.auth-foot a {
  color: var(--text-primary);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.auth-foot a:hover {
  color: var(--foreground);
}

.error {
  color: #ff6b6b;
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  min-height: 18px;
}

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

  h1 {
    font-size: 1.25rem;
  }
}
