/* ============================================================
   Login demo — invex
   Diseño minimalista, responsive, sin dependencias externas.
   Paleta en variables para personalizar la marca fácilmente.
   ============================================================ */

:root {
  --color-bg: #f4f5f7;
  --color-card: #ffffff;
  --color-brand: #a30d33;          /* wordmark / acentos */
  --color-text: #333333;
  --color-placeholder: #9aa0a6;
  --color-border: #e2e4e8;
  --color-border-focus: #a30d33;
  --color-btn: #5f6670;
  --color-btn-hover: #4c525b;
  --color-btn-disabled: #b8bcc2;
  --color-error: #c0392b;
  --radius: 6px;
  --field-height: 46px;
  --max-card-width: 340px;
  --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px;
}

.login-card {
  width: 100%;
  max-width: var(--max-card-width);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.brand {
  text-align: center;
  color: var(--color-brand);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -1px;
  margin: 0 0 8px;
  position: relative;
  user-select: none;
}

/* Símbolo de marca registrada; quítalo si no aplica a tu empresa */
.brand::after {
  content: "\00AE";
  font-size: 16px;
  font-weight: 600;
  vertical-align: super;
  margin-left: 2px;
}

.lang-selector {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.lang-selector select {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
}

.lang-selector select:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

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

.field input {
  width: 100%;
  height: var(--field-height);
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: var(--color-placeholder); }

.field input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(163, 13, 51, 0.12);
}

.field input.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

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

.form-message.success { color: #1e7e34; }

.btn-submit {
  height: var(--field-height);
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-btn);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-submit:hover { background-color: var(--color-btn-hover); }

.btn-submit:focus-visible {
  outline: 2px solid var(--color-btn-hover);
  outline-offset: 2px;
}

.btn-submit:disabled {
  background-color: var(--color-btn-disabled);
  cursor: not-allowed;
}

.forgot-link {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-brand);
  text-decoration: underline;
}

.forgot-link:hover { opacity: 0.85; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pantallas pequeñas */
@media (max-width: 400px) {
  .login-wrapper { padding: 48px 16px; }
  .brand { font-size: 44px; }
}
