﻿/* ─────────────────────────────────────────
   SmartShelf Auth — Stylesheet
   Palette: Deep navy · Electric blue · Crisp white
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg: #050814;
  --bg2: #0c1321;
  --bg3: rgba(255, 255, 255, 0.06);
  --bg4: rgba(255, 255, 255, 0.1);
  --accent: #4b7cf7;
  --accent-h: #7ca8ff;
  --accent-d: #2f5add;
  --t1: #f8fbff;
  --t2: #a8b4cf;
  --t3: #6d7b99;
  --b1: rgba(255, 255, 255, 0.09);
  --b2: rgba(255, 255, 255, 0.12);
  --radius: 26px;
}


*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'DM Sans', sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(79, 144, 255, 0.14), transparent 16%),
              radial-gradient(circle at bottom right, rgba(81, 196, 255, 0.08), transparent 20%),
              linear-gradient(180deg, #060814 0%, #0d1422 45%, #101728 100%);
  color: var(--t1);
  line-height: 1.65;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.06), transparent 18%),
              radial-gradient(circle at 85% 80%, rgba(67, 167, 255, 0.05), transparent 15%);
  pointer-events: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.login-container {
  position: relative;
  z-index: 1;
  display: block !important;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(8, 14, 29, 0.95);
  border: 1px solid var(--b2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.request-access-stack {
  display: block !important;
  width: 100%;
  min-width: 0;
}

.request-access-stack > form {
  display: block !important;
  width: 100%;
}

.cancel-action {
  width: 100%;
  margin-top: 16px;
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.session-timeout-message {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 126, 126, 0.35);
  border-radius: 14px;
  background: rgba(150, 35, 48, 0.18);
  color: #ffd9dc;
  text-align: center;
  font-size: 0.95rem;
}

.session-timeout-message[hidden] {
  display: none;
}

.login-header img {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.login-header h1 {
  font-family: 'Fraunces', serif;
  color: var(--t1);
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 1.05;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b1);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.input-group:hover {
  border-color: var(--accent);
  background: rgba(75, 124, 247, 0.08);
}

.input-group i {
  color: var(--accent);
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

.input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--t1);
  font-size: 1rem;
  padding: 0;
}

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

.forgot-password {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.forgot-password:hover {
  color: var(--accent-h);
  text-decoration: underline;
}

#request-access {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--t2);
}

#request-access p {
  margin: 0;
}

#request-access .contact-question > span,
#request-access .contact-email-line {
  display: block !important;
}

#request-access .contact-email-line {
  margin-top: 4px;
}

.btn-request {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-request:hover {
  color: var(--accent-h);
}

.btn-login {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-h));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(75, 124, 247, 0.28);
  background: linear-gradient(135deg, var(--accent-h), #7aa7ff);
}

.btn-login:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
  box-shadow: none;
}

input[name="captcha"] {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--b1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--t1);
  width: 100%;
}

input[name="captcha"]::placeholder {
  color: var(--t2);
}

.captcha-image {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 14px auto 10px auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-sw {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.reset-language {
  position: static;
  justify-content: center;
  margin-bottom: 18px;
}

.lb {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--t1);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.lb.on,
.lb:hover {
  background: rgba(75, 124, 247, 0.16);
  border-color: rgba(75, 124, 247, 0.35);
}

.help-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.help-links a {
  color: var(--t2);
  font-size: 0.92rem;
  text-decoration: none;
}

.help-links a:hover {
  color: var(--accent-h);
}


.terms {
  /*flex-direction: column;*/
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--t2);
  font-size: 0.95rem;
}

.terms input {
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
  margin-top: 4px;
}

.terms label {
  cursor: pointer;
  line-height: 1.4;
}

.terms a.terms-link {
  color: var(--accent) !important;
  text-decoration: underline;
}

.terms a.terms-link:hover {
  color: var(--t1) !important;
}

.terms input[type="checkbox"] {
    flex-shrink: 0; /* Evita que el checkbox se comprima o desaparezca */
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    margin-top: 4px;
}



.form .alertaError,
.form .alertaExito {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form .alertaError {
  background-color: #f76262;
}

.form .alertaExito {
  background-color: #24b784;
}

.error {
  outline: solid 2px #ca2e2e;
}

@media (max-width: 1024px) {
  .login-container {
    max-width: 460px;
    padding: 28px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .login-container {
    width: 100%;
    padding: 24px;
    margin: auto;
  }

  .login-header img {
    width: 68px;
    height: 68px;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .input-group {
    padding: 12px 14px;
  }

  .input-group input {
    font-size: 0.95rem;
  }

  .btn-login {
    font-size: 0.92rem;
    padding: 13px 18px;
  }
}

@media (max-width: 580px) {
  .lang-sw {
    position: static;
    justify-content: center;
    margin-bottom: 18px;
  }

  .help-links {
    justify-content: center;
  }

  .login-header h1 {
    font-size: 1.35rem;
  }

  .btn-login {
    padding: 12px 16px;
  }

  

  .input-group {
    gap: 10px;
  }
}
