:root{
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 14px 40px rgba(0,0,0,.10);
  --primary: #d8a23a;      /* dorado elegante */
  --primaryHover: #c8922e;
  --radius: 18px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.auth-wrap{
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.auth-card{
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-title{
  margin: 0 0 18px 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.alert{
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14px;
}

.auth-form .field{
  margin-bottom: 16px;
}

label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.req{ color: #ef4444; }

input[type="text"],
input[type="password"]{
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
  transition: .15s ease;
}

input:focus{
  border-color: rgba(216,162,58,.9);
  box-shadow: 0 0 0 4px rgba(216,162,58,.18);
}

.input-wrap{
  position: relative;
}

.input-wrap input{
  padding-right: 46px; /* espacio para el botón ojo */
}

.toggle-pass{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: .85;
  transition: .15s ease;
}

.toggle-pass:hover{
  opacity: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.btn-primary{
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  margin-top: 6px;
  transition: .15s ease;
}

.btn-primary:hover{
  background: var(--primaryHover);
  transform: translateY(-1px);
}