/* ===========================================================
   Login CEMINEM — split-screen moderno e institucional.
   Identidad UNIZAR: #223d71, Myriad Pro, emblema del Paraninfo.
   =========================================================== */

.login-page,
.login-page *,
.login-page *::before,
.login-page *::after { box-sizing: border-box; }

.login-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #f4f6f9);
  color: var(--fg, #101828);
  font-family: "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.login-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  max-width: 100%;
}

/* ============ Panel de marca (izquierda) ============ */
.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  color: #fff;
  background:
    radial-gradient(1200px 700px at 100% 0%, rgba(108, 142, 205, 0.28), transparent 55%),
    radial-gradient(900px 600px at 0% 100%, rgba(20, 37, 68, 0.55), transparent 60%),
    linear-gradient(155deg, #284780 0%, #223d71 42%, #16284a 100%);
}

/* Retícula sutil */
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.login-brand__top,
.login-brand__center,
.login-brand__foot { position: relative; z-index: 2; }

.login-brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.login-brand__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  display: inline-block;
}

.login-brand__center { max-width: 460px; }
.login-brand__center h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: bold;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.login-brand__center h1 span { color: #aac2f0; }
.login-brand__center p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.login-brand__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.login-brand__foot .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.login-brand__heritage {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

/* ============ Panel de formulario (derecha) ============ */
.login-form-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
}
.login-form-side .login-bg {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 440px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  animation: login-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes login-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo { height: 42px; width: auto; margin-bottom: 36px; }

.login-header { margin-bottom: 30px; }
.login-header h2 {
  font-size: 25px;
  font-weight: bold;
  color: #101828;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.login-header p { color: #5c6678; font-size: 15px; margin: 0; }

.login-field { margin-bottom: 20px; }
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  margin-bottom: 8px;
}
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-wrap svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #98a2b3;
  pointer-events: none;
  transition: color 0.2s ease;
}
.login-field input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  border: 1px solid #d4dae4;
  border-radius: 12px;
  font-size: 15px;
  color: #101828;
  background: #fbfcfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}
.login-field input::placeholder { color: #b3bccd; }
.login-field input:focus {
  outline: none;
  background: #fff;
  border-color: #223d71;
  box-shadow: 0 0 0 4px rgba(34, 61, 113, 0.12);
}
.login-input-wrap:focus-within svg { color: #223d71; }

.login-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #223d71;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 14px;
  cursor: pointer;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(34, 61, 113, 0.22);
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.login-btn svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.login-btn:hover {
  background: #1a2f58;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 61, 113, 0.3);
}
.login-btn:hover svg { transform: translateX(3px); }
.login-btn:active { transform: translateY(0); }

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.login-alert svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-foot {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #eceff4;
  text-align: center;
  font-size: 12px;
  color: #98a2b3;
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-side { min-height: 100vh; }
}
