:root {
  --primary: var(--color-primary, #c75e2a);
  --primary-hover: var(--color-primary-hover, #e07040);

  --bg: rgba(10, 10, 10, 0.7);
  --card: rgba(20, 20, 20, 0.55);

  --text: #f8fafc;
  --muted: #9ca3af;
  --border: rgba(255,255,255,.18);

  --brand-dim: rgba(199, 94, 42, 0.12);

  --error: #f87171;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.35);

  --transition-base: 200ms ease;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(600px at 50% 0%, rgba(199, 94, 42, 0.12), transparent),
    radial-gradient(800px at 50% 100%, rgba(0,0,0,0.9), #000);

  color: var(--text);
}

.auth {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
}

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

.brand {
  text-align: center;
}

.logo {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;

  /* 👇 CLAVE */
  background: linear-gradient(180deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand p {
  margin-top: 6px;
  font-size: 14px;
  color: #94a3b8; 
}

.scene {
  width: 100%;
  max-width: 380px;
}

.card-face {
  padding: 32px;
  border-radius: 20px;

  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(12px);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid var(--border);

  box-shadow: var(--shadow-lg);
}

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

.form h1 {
  text-align: center;
  margin-bottom: 6px;
}

label span {
  font-size: 13px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 4px;
}

input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); 
  
  color: var(--text);
  font-size: 15px;
}

input::placeholder {
  color: var(--muted);
}


.primary {
  margin-top: 6px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;

  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}


.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.primary:focus {
  box-shadow: var(--shadow-brand);
}

.primary:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  display: none;
  margin: 0 auto;
}

button.loading .btn-text {
  visibility: hidden;
}

button.loading .spinner {
  display: block;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.link {
  font-size: 13px;
  color: var(--primary);
  text-align: center;
  cursor: pointer;

  position: relative;
  transition: color var(--transition-base);
}

/* 👇 línea animada moderna */
.link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}


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

.link:hover::after {
  width: 100%;
}

.link-secondary {
  color: var(--muted);
}

.link-secondary::after {
  background: var(--muted);
}

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

.error {
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
  text-align: center;
}

.hidden {
  display: none;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--brand-dim);
}