:root{
  --bg: #0f172a;   
  --btn-primary: #ee2c37;             /* slate-900 */
  --bg-2: #111827;              /* gray-900 */
  --card-bg: #ffffff;
  --text: #0f172a;              /* slate-900 */
  --muted: #64748b;             /* slate-500 */
  --border: #e2e8f0;            /* slate-200 */
  --primary: #2563eb;           /* blue-600 -> Cambia a tu color corporativo */
  --primary-600: #1d4ed8;       /* blue-700 */
  --ring: #93c5fd;              /* blue-300 */
  --error: #dc2626;             /* red-600 */
  --radius: 14px;
  --shadow: 0 10px 25px rgba(2,6,23,.15);
}

/* Layout base */
html, body { height: 100%; }
body{
  margin:0;
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 10% 10%, #1f2937 0%, transparent 70%),
    radial-gradient(1000px 800px at 90% 20%, #0b3b7a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.page{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Contenedor principal: marca + tarjeta */
.container{
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 980px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .container{
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Columna de marca / hero */
.brand{
  color: transparent; /* #e5e7eb; /* gray-200 */
  text-align: center;
}
.brand .logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 72px;
  padding: 8px 12px;
  border-radius: 12px;
  /* background: rgba(255,255,255,.06); */
  backdrop-filter: blur(4px);
  /* border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.25) inset, 0 8px 24px rgba(0,0,0,.15); */
}
.brand .logo img{
  max-height: 200%;
  max-width: 100%;
}
.brand h2{
  margin: 16px 0 6px;
  font-weight: 600;
  font-size: 22px;
  color: #f3f4f6; /* gray-100 */
}
.brand p{
  margin: 0;
  color: #cbd5e1; /* slate-300 */
  font-size: 14px;
}

/* Tarjeta de login */
.card{
  
  max-width: 420px;     /* Antes 420px */
  margin: 0 auto;
  border-radius: 16px;

  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);


  overflow: clip;
}
.card-header{
  padding: 22px 24px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.card-header .product{
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-header .product img{
  max-width: 100%; max-height: 100%; object-fit: contain;
}

.img-transparente {
  background-color: transparent;
}

.card-header .product span{
  color: var(--muted);
  font-size: 13px;
}
.card-body{ padding: 20px 24px 4px; }
.card-footer
{
  display: flex;
  justify-content: center;
  padding: 10px 20px;
 }

.card h1{
  margin: 0 0 8px;
  font-size: 22px;
}
.card .hint{
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Formulario */
.form-group{ margin-bottom: 14px; }
label{
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}
.input{
  width: 90%;
  height: 30px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder{ color: #94a3b8; }
.input:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 40%, transparent);
}
.error-text{
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}

/* Botones */
.actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .04s ease, background-color .15s ease, box-shadow .15s;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }
.btn-danger {
  background-color: var(--btn-primary) !important;
  color: #e2e8f0;
}
.btn-danger:hover{
   background-color: #fff !important;
   border-color: var(--btn-primary);
   color: var(--btn-primary);
}
.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
}
.btn-primary:hover
{ 
  background: var(--ring);
  border: var(--ring);
  color: #e2e8f0;
 }
.btn-secondary{
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
}
.btn-secondary:hover
{ 
  background: var(--ring);
  border-color: var(--primary);
  color: #e2e8f0;
 }
.btn-link{
  background: transparent;
  color: var(--muted);
  height: auto;
  padding: 6px 10px;
}
.btn-link:hover{ color: var(--text); }

/* Zona de mensajes (ASP Label) */
#DivContenedor{
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
}

/* Footer marcas */
.footer-logos{
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: .9;
  filter: grayscale(.1);
}
.footer-logos img{
  max-height: 20%;
  max-width: 20%;
  object-fit: contain;
}

/* Utilidades */
.visually-hidden{
  position:absolute !important;
  height:1px;width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
  border:0;padding:0;margin:-1px;
}

 /* FOOTER */
/* ===== Footer profesional ===== */
.site-footer {
  width: 100%;
  padding: 18px 20px;
  background: #0f172a;          /* Gris oscuro */
  color: #e2e8f0;               /* Gris claro */
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 34px;
  width: auto;
  opacity: .85;
}

.footer-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.footer-text a {
  color: #93c5fd;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* responsive */
@media (max-width: 480px) {
  .footer-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }

  .brand h2 {
    font-size: 20px;
  }

  .brand p {
    font-size: 13px;
  }

  .card {
    margin-top: 10px;
  }
}    