/* Login / registo — layout dedicado (não depende de utilitários Tailwind em falta) */

.auth-layout {
  min-height: 100vh;
  display: flex;
  background-color: var(--background);
  color: var(--foreground);
}

.auth-brand {
  display: none;
  width: 45%;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--secondary);
  border-right: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .auth-brand {
    display: flex;
  }
}

.auth-brand-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand-blob--primary {
  top: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  opacity: 0.1;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  transform: translate(-30%, -30%);
}

.auth-brand-blob--accent {
  bottom: 0;
  right: 0;
  width: 20rem;
  height: 20rem;
  opacity: 0.08;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  transform: translate(30%, 30%);
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-logo .app-logo {
  width: 2.5rem;
  height: 2.5rem;
}

.auth-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-hero-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-hero-lead {
  margin-top: 1rem;
  color: var(--secondary-foreground);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
}

.auth-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.auth-feature-dot {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-feature-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--primary);
}

.auth-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.auth-feature-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.auth-brand-footer {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .auth-main {
    padding: 3rem;
  }
}

.auth-form-wrap {
  width: 100%;
  max-width: 28rem;
}

.auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-subheading {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.auth-tabs {
  display: flex;
  background: var(--muted);
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin-top: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.375rem;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}

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

.auth-tab.is-active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.auth-field-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.auth-account-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.auth-account-types label {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  cursor: pointer;
  margin: 0;
}

.auth-account-types label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
}

.auth-account-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-demo {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(37, 43, 59, 0.4);
}

.auth-demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.auth-demo-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

.auth-demo-fill {
  font-size: 0.75rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.auth-demo-fill:hover {
  color: var(--accent);
}

.auth-demo p {
  font-size: 0.75rem;
  margin: 0.125rem 0;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}
