/* ================================
   LOGIN - PORTAL DE PLANIFICACIÓN
================================ */

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f14;
}

.login-container {
  width: min(1180px, 92vw);
  min-height: 650px;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  background: #11161d;
  box-shadow: 0 20px 55px rgba(0,0,0,.4);
}

/* ================================
   PANEL IZQUIERDO
================================ */

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 42px 48px;
  overflow: hidden;
  background: #0a0f1a;
}

.brand-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,122,0,.2);
  border-radius: 50%;
  pointer-events: none;
}

.login-brand::before {
  width: 360px;
  height: 360px;
  top: -220px;
  right: -210px;
}

.login-brand::after {
  width: 280px;
  height: 280px;
  bottom: -210px;
  left: -200px;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 55px;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 1;
}

.logo-p1 {
  color: #fff;
}

.logo-p2 {
  color: #ff7a00;
  margin-left: 2px;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.brand-label {
  display: block;
  margin-bottom: 18px;
  color: #ff7a00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.brand-content h1 {
  margin: 0;
  color: #fff;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.brand-content h1 span {
  color: #ff7a00;
}

.brand-content p {
  max-width: 350px;
  margin: 18px 0 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
}

.brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  color: #6b7280;
  font-size: 11px;
}

/* ================================
   PANEL DERECHO
================================ */

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 90px 28px;
  background: #fff;
}

.login-box {
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.login-header {
  margin-bottom: 30px;
}

.login-header h2 {
  margin: 0 0 7px;
  color: #000;
  font-size: 34px;
  font-weight: 700;
}

.login-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

/* ================================
   FORMULARIO
================================ */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group label {
  color: #2f3135;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ================================
   CAMPOS
================================ */

.input-container {
  display: flex;
  align-items: center;
  height: 44px;
  width: 80%;
  box-sizing: border-box;
  padding: 0 14px;
  gap: 11px;
  border: 1px solid #374151;
  border-radius: 9px;
  background: #1f2937;
  transition: .2s;
}

.input-container:focus-within {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255,122,0,.08);
}

.input-container i {
  width: 18px;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

.input-container input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.input-container input::placeholder {
  color: #6b7280;
}

/* ================================
   BOTÓN INICIAR SESIÓN
================================ */

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  width: 80%;
  height: 46px;
  margin-top: 7px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #ff7a00;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-auth i {
  font-size: 13px;
  color: #ffffff;
}

.btn-auth:hover {
  background-color: #cc6200;
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.30);
}

.btn-auth:hover i {
  color: #ffffff;
}

/* ================================
   OLVIDÉ MI CONTRASEÑA
================================ */

.btn-secondary {
  align-self: flex-start;
  width: 80%;
  box-sizing: border-box;
  text-align: center;
  margin-top: -2px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
}

.btn-secondary:hover {
  color: #ff7a00;
}

.btn-secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ================================
   MENSAJE
================================ */

.auth-msg {
  display: none;
  margin: -5px 0 0;
  color: #ff7a00;
  font-size: 12px;
  text-align: center;
  width: 80%;
  box-sizing: border-box;
}

.auth-msg:not(:empty) {
  display: block;
}

.auth-msg.error {
  color: #f87171;
}

/* ================================
   AVISO
================================ */

.login-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.login-note p {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255,122,0,.09);
}

/* ================================
   FOOTER
================================ */

.login-footer {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 11px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 850px) {
  body {
    padding: 15px;
  }

  .login-container {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 300px;
    padding: 35px;
  }

  .login-panel {
    padding: 40px 35px 25px;
  }

  .input-container,
  .btn-auth,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .login-brand {
    min-height: 270px;
    padding: 28px;
  }

  .login-panel {
    padding: 35px 25px;
  }

  .brand-content h1 {
    font-size: 36px;
  }

  .login-header h2 {
    font-size: 32px;
  }
}

/* Evitar fondo amarillo de autocompletado del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #1e2633 inset;
  box-shadow: 0 0 0 1000px #1e2633 inset;
  transition: background-color 9999s ease-in-out 0s;
}
