/* =====================================================
   ROOT / BRANDING (GLOBAL)
===================================================== */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e4fd8;
  --color-accent: #18c1d6;
  --color-bg: #f4f6f8;
  --color-card: #ffffff;
  --color-text: #111827;
  --color-border: #d1d5db;
}

/* =====================================================
   RESET / BASE
===================================================== */
* {
  box-sizing: border-box;
  font-family: system-ui, Arial, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden; /* 👈 CLAVE */
  overscroll-behavior: none;
}

/* =====================================================
   BODY
===================================================== */
body {
  background: var(--color-bg);
  color: var(--color-text);
}

/* =====================================================
   LOGIN CONTAINER (FULL SCREEN)
===================================================== */
.login-container {
  position: fixed; /* 👈 CLAVE */
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* =====================================================
   LOGIN CARD
===================================================== */
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--color-card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--color-border);
}

/* =====================================================
   LOGO
===================================================== */
.login-logo {
  text-align: center;
  margin-bottom: 16px;
}

.login-logo img {
  max-width: 160px;
  height: auto;
}

/* =====================================================
   TITLE
===================================================== */
.login-title {
  text-align: center;
  margin-bottom: 24px;
}

/* =====================================================
   FORM
===================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px; /* un poco más cómodo */
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 16px; /* 👈 CLAVE */
}

/* ==============================
   INPUTS + SELECT UNIFICADOS
================================ */
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cfd4dc;
  font-size: 16px;
  background-color: #fff;
  appearance: none; /* 🔑 quita estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Flecha custom para select */
.form-group select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

/* =====================================================
   BUTTON
===================================================== */
.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* =====================================================
   DIVIDERS
===================================================== */
.login-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* =====================================================
   COMPANY CTA
===================================================== */
.login-company {
  text-align: center;
  font-size: 14px;
}

.login-company strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #555;
}

.login-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
}

.login-link:hover {
  text-decoration: underline;
}

/* =====================================================
   FOOTER
===================================================== */
.login-footer {
  text-align: center;
  font-size: 14px;
}

.login-footer,
.login-company {
  margin-top: 12px;
}

.login-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

/* =====================================================
   PASSWORD TOGGLE
===================================================== */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* ===============================
AUTH LAYOUT
=============================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: #f5f7fb;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===============================
LOGO
=============================== */

.auth-logo {
  text-align: center;
  margin-bottom: 25px;
}

.auth-logo img {
  max-width: 140px;
}

/* ===============================
TITLE
=============================== */

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

/* ===============================
DESCRIPTION
=============================== */

.auth-description {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 25px;
}

/* ===============================
PRIMARY BUTTON
=============================== */

.auth-primary-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #2f5fd0;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-primary-btn:hover {
  background: #244bb3;
}

/* ===============================
BACK LINK
=============================== */

.auth-actions {
  margin-top: 20px;
}

.auth-link {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.auth-link:hover {
  text-decoration: underline;
}
