:root {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  --font-geist-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-geist-mono: "GeistMono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --radius: 0.5rem;
  font-family: var(--font-geist-sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: 229 84% 4%;
    --foreground: 210 20% 96%;
    --muted: 225 15% 14%;
    --muted-foreground: 210 10% 70%;
    --card: 225 14% 12%;
    --card-foreground: 210 20% 96%;
    --border: 220 9% 24%;
    --input: 220 9% 28%;
    --primary: 210 20% 96%;
    --primary-foreground: 229 84% 4%;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-geist-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}

.auth-wrapper {
  width: min(420px, 100%);
  display: grid;
  gap: 1.5rem;
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.auth-links a {
  color: inherit;
  text-decoration: none;
}

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

.auth-card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 2.4rem);
  display: grid;
  gap: 1.5rem;
}

.auth-card__header {
  display: grid;
  gap: 0.4rem;
}

.auth-card__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-card__description {
  margin: 0;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.form-fields {
  display: grid;
  gap: 0.85rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.form-label {
  font-weight: 500;
}

.form-required {
  color: hsl(var(--destructive, 0 84.2% 60.2%));
  margin-left: 0.15rem;
}

.form-help {
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
}

.form-errors {
  font-size: 0.8rem;
  color: hsl(var(--destructive, 0 84.2% 60.2%));
  display: grid;
  gap: 0.25rem;
}

.auth-messages {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-message {
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) - 0.15rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted));
  font-size: 0.9rem;
}

.auth-message[data-variant~="error"],
.auth-message[data-variant~="danger"] {
  border-color: hsl(var(--destructive, 0 84.2% 60.2%));
  color: hsl(var(--destructive, 0 84.2% 60.2%));
}

.form-utility {
  text-align: right;
  font-size: 0.8rem;
}

.form-utility a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.form-utility a:hover {
  color: hsl(var(--foreground));
  text-decoration: underline;
}

.auth-card__footer {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.auth-card__footer a {
  color: hsl(var(--foreground));
  font-weight: 500;
  text-decoration: none;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: rgba(128, 128, 128, 0.5);
  color-scheme: light;
  --font-geist-sans: "Geist";
  --font-geist-mono: "GeistMono";
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-sizing: border-box;
  border-style: solid;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border-width: 1px;
  border-color: hsl(var(--input));
  background-color: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
  outline: none;
}

.button,
.auth-form button[type="submit"] {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: rgba(128, 128, 128, 0.5);
  color-scheme: light;
  --font-geist-sans: "Geist";
  --font-geist-mono: "GeistMono";
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  margin: 0;
  text-transform: none;
  -webkit-appearance: button;
  background-image: none;
  cursor: pointer;
  display: inline-flex;
  height: 2.25rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.button:hover,
.auth-form button[type="submit"]:hover {
  filter: brightness(0.95);
}

.button-outline {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-width: 1px;
}

.button-outline:hover {
  background-color: hsl(var(--accent));
}

.email-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.email-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.email-item__info {
  display: grid;
  gap: 0.25rem;
}

.email-item__address {
  font-weight: 500;
}

.email-item__meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.email-item__actions {
  display: flex;
  gap: 0.5rem;
}

.email-item__badge {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
}

.auth-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-actions .button {
  width: auto;
}

.auth-details {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.2rem);
  padding: 0.85rem 1rem;
  background-color: hsl(var(--muted));
  font-size: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.auth-details summary {
  cursor: pointer;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.auth-details[open] summary {
  margin-bottom: 0.5rem;
}
.form-fields--inline {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field--inline {
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 520px) {
  .form-fields--inline {
    grid-template-columns: 1fr;
  }
}
