:root {
  --orange: #ff7a25;
  --orange-dark: #e96112;
  --ink: #17201f;
  --ink-2: #263332;
  --muted: #6b7775;
  --line: #e6eae9;
  --bg: #f5f7f6;
  --white: #ffffff;
  --green: #1e9e68;
  --red: #d94444;
  --shadow: 0 8px 30px rgba(25,39,37,.07);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

h1,
p {
  margin-top: 0;
}

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

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top right,
      #ffe7d6,
      transparent 38%
    ),
    linear-gradient(
      140deg,
      #f7f9f8,
      #eef2f1
    );

  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow:
    0 25px 70px rgba(30,45,43,.13);

  padding: 32px;
}

.auth-logo {
  width: 230px;
  height: 75px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 18px;
}

.auth-heading h1 {
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.auth-heading p {
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  background: #fff0e7;
  color: var(--orange-dark);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

.login-type {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;

  padding: 5px;

  background: #f1f4f3;
  border-radius: 11px;
}

.login-type-btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;

  background: transparent;
  color: #687472;

  font-size: .78rem;
  font-weight: 750;

  cursor: pointer;
  transition: .18s;
}

.login-type-btn:hover {
  color: var(--ink);
}

.login-type-btn.active {
  background: #fff;
  color: var(--orange-dark);
  box-shadow:
    0 3px 12px rgba(25,39,37,.07);
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;

  font-size: .78rem;
  font-weight: 700;
  color: #46514f;
}

input {
  width: 100%;
  border: 1px solid #dce2e0;
  border-radius: 9px;
  background: #fff;

  padding: 11px 12px;
  color: var(--ink);
  outline: 0;

  transition: .16s;
}

input:focus {
  border-color: var(--orange);
  box-shadow:
    0 0 0 3px rgba(255,122,37,.10);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 34px;

  border: 0;
  border-radius: 7px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;
}

.password-toggle:hover {
  background: #f3f5f4;
  color: var(--ink);
}

.btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;

  font-weight: 700;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: .17s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--orange);
  color: #fff;

  box-shadow:
    0 5px 12px rgba(255,122,37,.18);
}

.btn.primary:hover {
  background: var(--orange-dark);
}

.btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.login-submit {
  padding: 12px;
  margin-top: 4px;
}

.alert {
  margin-top: 16px;
  border-radius: 10px;
  padding: 10px 12px;

  font-size: .8rem;
  font-weight: 650;
}

.alert.danger {
  color: #a72f2f;
  background: #fff1f1;
  border: 1px solid #f3caca;
}

.hidden {
  display: none;
}

.auth-footer {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 17px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: var(--muted);
  font-size: .72rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;

  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(30,158,104,.10);
}

@media (max-width: 520px) {

  .auth-page {
    padding: 14px;
  }

  .auth-card {
    padding: 25px 21px;
  }

  .auth-logo {
    width: 205px;
    height: 67px;
  }

  .auth-heading h1 {
    font-size: 1.45rem;
  }
}

/* ===== MODO DARK - MOVING CRED ===== */

.auth-page {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 37, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.035), transparent 28%),
    #050505 !important;
}

.auth-card {
  background: #111111 !important;
  border: 1px solid #252525 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55) !important;
}

.auth-heading h1 {
  color: #ffffff !important;
}

.auth-heading p,
.muted {
  color: #aeb7b5 !important;
}

.auth-eyebrow {
  background: rgba(255, 122, 37, 0.13) !important;
  color: #ff7a25 !important;
}

.login-type {
  background: #1b1b1b !important;
}

.login-type-btn {
  color: #9ba3a1 !important;
}

.login-type-btn.active {
  background: #ffffff !important;
  color: #e96112 !important;
}

label {
  color: #e8eceb !important;
}

input {
  background: #181818 !important;
  color: #ffffff !important;
  border-color: #303030 !important;
}

input::placeholder {
  color: #858d8b !important;
}

input:focus {
  border-color: #ff7a25 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 37, 0.12) !important;
}

.password-toggle {
  color: #959d9b !important;
}

.password-toggle:hover {
  background: #252525 !important;
  color: #ffffff !important;
}

.auth-footer {
  border-top-color: #292929 !important;
  color: #929b99 !important;
}

.btn.primary {
  background: #ff7a25 !important;
  color: #ffffff !important;
}

.btn.primary:hover {
  background: #e96112 !important;
}


/* ===== LOGO CENTRALIZADO ===== */

.auth-logo {
  display: block !important;
  width: 270px !important;
  height: 95px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto 22px auto !important;
}

@media (max-width: 520px) {
  .auth-logo {
    width: 240px !important;
    height: 85px !important;
  }
}


/* ===== ALERTA DE LOGIN REAL ===== */

.alert.success {
  color: #83e6b6 !important;
  background: rgba(30, 158, 104, 0.12) !important;
  border: 1px solid rgba(30, 158, 104, 0.28) !important;
}

