/* Login — Sistema Finanzas */

* { box-sizing: border-box; }

.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: #1E293B;
  background: #F8FAFC;
}

.login-page .accent { color: #F97316; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* LEFT PANEL */
.login-aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0B1220, #060a12);
  color: #FFFFFF;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-ring {
  position: absolute;
  opacity: 0.35;
  pointer-events: none;
}

.login-ring-top { top: -120px; right: -120px; }
.login-ring-bottom { bottom: -90px; left: -90px; }

.login-aside-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  overflow: hidden;
}

.login-headline {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px 0;
  color: #FFFFFF;
}

.login-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: #A9B4C4;
  margin: 0;
  max-width: 340px;
}

.login-divider {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: #F97316;
  margin-top: 22px;
}

.login-divider-sm {
  width: 32px;
  margin-top: 0;
  margin-bottom: 14px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 44px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-feature-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-feature-title {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.login-feature-sub {
  font-size: 13px;
  color: #8A96AA;
  margin-top: 2px;
}

.login-aside-foot {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  color: #7C8AA0;
}

/* RIGHT PANEL */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #FFFFFF;
}

.login-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  overflow: hidden;
}

.login-card-title {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
}

.login-card-copy {
  font-size: 14.5px;
  color: #64748B;
  margin: 0 0 28px 0;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: left;
}

.login-field {
  margin-bottom: 16px;
  text-align: left;
}

.login-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}

.login-control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFC;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.login-control:focus-within {
  border-color: #F97316;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.login-control svg {
  flex: 0 0 auto;
  color: #94A3B8;
}

.login-control input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: #0F172A;
}

.login-control input::placeholder {
  color: #94A3B8;
}

.login-eye {
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
  color: #94A3B8;
  display: flex;
}

.login-eye:hover { color: #475569; }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 22px;
  font-size: 13.5px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  accent-color: #F97316;
  width: 15px;
  height: 15px;
}

.login-link {
  color: #F97316;
  text-decoration: none;
  font-weight: 600;
}

.login-link:hover { text-decoration: underline; }

.login-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px -10px rgba(234, 88, 12, 0.55);
  transition: filter 0.15s ease, transform 0.05s ease;
}

.login-submit:hover { filter: brightness(1.05); }
.login-submit:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { padding: 40px 32px; min-height: 340px; }
  .login-headline { font-size: 32px; }
  .login-features { margin-top: 28px; }
  .login-main { padding: 32px 24px; }
}
