/* =========================================
   HORUS APP - PREMIUM LOGIN
   ========================================= */

:root {
  --horus-primary: #3867ed;
  --horus-primary-dark: #244cc4;
  --horus-dark: #101b35;
  --horus-text: #18233d;
  --horus-muted: #8993a8;
  --horus-border: #e8ecf3;
  --horus-background: #f5f7fc;
  --horus-radius: 18px;
}

/* RESET */

* {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--horus-dark);
  color: var(--horus-text);
}

/* =========================================
   BACKGROUND
   ========================================= */

.login-wrapper {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(56, 103, 237, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(74, 111, 255, 0.15),
      transparent 35%
    ),
    #101b35;
}

.login-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.decoration-one {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  top: -170px;
  right: -100px;
}

.decoration-two {
  width: 550px;
  height: 550px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  bottom: -330px;
  left: -180px;
}

/* =========================================
   MAIN CONTAINER
   ========================================= */

.login-container {
  width: 100%;
  max-width: 1100px;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}

/* =========================================
   BRAND PANEL
   ========================================= */

.login-brand-panel {
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(87, 130, 255, 0.35),
      transparent 35%
    ),
    linear-gradient(145deg, #17294d, #101b35 75%);
  position: relative;
  overflow: hidden;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  right: -130px;
  bottom: -120px;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.015);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #5b86ff, #3260df);
  color: white;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(56, 103, 237, 0.35);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 3px;
}

.brand-subtitle {
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.55;
}

.brand-content {
  position: relative;
  z-index: 2;
  margin: 60px 0;
}

.brand-label,
.login-overline {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #80a2ff;
}

.brand-content h2 {
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  margin: 22px 0;
  letter-spacing: -2px;
}

.brand-content h2 span {
  color: #80a2ff;
}

.brand-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.9;
  max-width: 340px;
}

.brand-features {
  display: grid;
  gap: 18px;
  margin-top: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.feature-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(89, 137, 255, 0.2);
  color: #8eacff;
  font-size: 12px;
}

.brand-footer {
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.45;
  position: relative;
  z-index: 2;
}

/* =========================================
   FORM PANEL
   ========================================= */

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px 65px;
  background: white;
}

.login-card {
  width: 100%;
  max-width: 390px;
  margin: auto;
}

.mobile-brand {
  display: none;
}

.login-heading {
  margin-bottom: 35px;
}

.login-heading h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.3px;
  margin: 13px 0 10px;
  color: var(--horus-text);
}

.login-heading p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--horus-muted);
  margin: 0;
}

/* =========================================
   INPUTS
   ========================================= */

.login-field {
  margin-bottom: 23px;
}

.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #35415b;
  margin-bottom: 9px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
  z-index: 2;
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #99a4b8;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrapper .form-control {
  height: 55px;
  width: 100%;
  border: 1px solid var(--horus-border);
  border-radius: 13px;
  padding: 0 16px 0 47px;
  font-size: 13px;
  color: var(--horus-text);
  background: #f8f9fc;
  box-shadow: none;
  transition: all 0.25s ease;
}

.input-wrapper .form-control::placeholder {
  color: #a9b1c0;
}

.input-wrapper .form-control:focus {
  border-color: var(--horus-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(56, 103, 237, 0.1);
}

/* PASSWORD */

.password-field .form-control {
  padding-right: 85px;
}

.password-toggle {
  position: absolute;
  right: 13px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: var(--horus-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--horus-primary-dark);
}

/* =========================================
   SUBMIT BUTTON
   ========================================= */

.login-submit {
  width: 100%;
  height: 55px;
  margin-top: 8px;
  border: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(110deg, #4779f5, #315ee0);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(56, 103, 237, 0.23);
  transition: all 0.25s ease;
}

.login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(56, 103, 237, 0.32);
  background: linear-gradient(110deg, #3867ed, #244cc4);
}

.login-submit:hover svg {
  transform: translateX(4px);
}

.login-submit:active {
  transform: scale(0.99);
}

/* =========================================
   DIVIDER
   ========================================= */

.login-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0 23px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--horus-border);
}

.login-divider span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a2aabb;
}

/* =========================================
   PASSKEY
   ========================================= */

.passkey-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--horus-border);
  border-radius: 13px;
  background: white;
  color: var(--horus-text);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.passkey-button:hover {
  border-color: var(--horus-primary);
  background: #f7f9ff;
}

.fingerprint-icon {
  font-size: 23px;
  color: var(--horus-primary);
}

/* =========================================
   ALERTS
   ========================================= */

.login-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.alert-info {
  color: #2853a6;
  background: #eff5ff;
  border: 1px solid #dce9ff;
}

.alert-danger {
  color: #a52f43;
  background: #fff1f2;
  border: 1px solid #ffdce1;
}

/* =========================================
   SECURITY
   ========================================= */

.login-security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: #9aa3b3;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.security-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf8f0;
  color: #24a46a;
  font-size: 10px;
}

.login-bottom {
  margin-top: 35px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #a4acba;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {
  .login-wrapper {
    padding: 20px;
  }

  .login-container {
    max-width: 750px;
    min-height: 600px;
  }

  .login-brand-panel {
    padding: 35px;
  }

  .login-form-panel {
    padding: 35px;
  }

  .brand-content h2 {
    font-size: 39px;
  }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {
  body.login-page {
    background: #f4f6fb;
  }

  .login-wrapper {
    min-height: 100vh;
    min-height: 100svh;
    padding: 20px;
    align-items: center;
    background:
      radial-gradient(
        circle at 50% 0%,
        rgba(56, 103, 237, 0.15),
        transparent 40%
      ),
      #f4f6fb;
  }

  .login-decoration,
  .login-brand-panel {
    display: none;
  }

  .login-container {
    display: block;
    min-height: auto;
    max-width: 440px;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(25, 45, 90, 0.1);
  }

  .login-form-panel {
    padding: 35px 25px 25px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    color: var(--horus-dark);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 17px;
  }

  .mobile-brand .brand-logo {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .login-heading {
    margin-bottom: 28px;
  }

  .login-heading h1 {
    font-size: 30px;
  }

  .login-bottom {
    margin-top: 27px;
  }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 360px) {
  .login-wrapper {
    padding: 12px;
  }

  .login-form-panel {
    padding: 28px 18px 22px;
  }

  .login-heading h1 {
    font-size: 27px;
  }

  .input-wrapper .form-control {
    height: 51px;
    font-size: 12px;
  }

  .login-submit {
    height: 52px;
  }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(56, 103, 237, 0.3);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Paleta clara y verde de Horus */
:root{--horus-primary:#16834b;--horus-primary-dark:#11653a;--horus-dark:#111512;--horus-text:#111512;--horus-muted:#68736c;--horus-border:#e3eae5;--horus-background:#f7f9f7}
body.login-page{color:#111512;background:#f7f9f7}.login-wrapper{background:radial-gradient(circle at 8% 10%,#e7f5eb,transparent 35%),radial-gradient(circle at 90% 90%,#f0f7f2,transparent 34%),#f7f9f7}.login-container{border:1px solid #e3eae5;border-radius:28px;box-shadow:0 32px 90px rgba(24,55,35,.12)}.login-brand-panel{color:#111512;background:radial-gradient(circle at 88% 12%,rgba(255,255,255,.9),transparent 34%),linear-gradient(145deg,#f0f8f2,#e1f1e6 78%)}.login-brand-panel::after{border-color:rgba(22,131,75,.11);box-shadow:0 0 0 45px rgba(22,131,75,.035),0 0 0 90px rgba(22,131,75,.025)}.brand-logo{background:linear-gradient(135deg,#22a45e,#11683b);box-shadow:0 8px 22px rgba(22,131,75,.2)}.brand-subtitle{color:#526057;opacity:.85}.brand-label,.login-overline,.brand-content h2 span{color:#16834b}.brand-content p{color:#4d5a51}.feature-item{color:#26332a}.feature-icon{background:#d8eddf;color:#11653a}.brand-footer{color:#526057;opacity:.78}.login-form-panel{background:#fff}.login-heading p{color:#68736c}.login-field label{color:#313a34}.input-wrapper .form-control{background:#fbfcfb;color:#111512}.input-wrapper .form-control:focus{border-color:#16834b;background:#fff;box-shadow:0 0 0 4px rgba(22,131,75,.1)}.password-toggle{color:#16834b}.password-toggle:hover{color:#11653a}.login-submit{background:linear-gradient(110deg,#1b9656,#11653a);box-shadow:0 9px 22px rgba(22,131,75,.2)}.login-submit:hover{background:linear-gradient(110deg,#16834b,#0f5832);box-shadow:0 13px 27px rgba(22,131,75,.25)}.passkey-button:hover{border-color:#16834b;background:#f4faf6}.fingerprint-icon{color:#16834b}.login-divider span{color:#68736c}.login-security{color:#68736c}.security-icon{background:#eaf6ee;color:#16834b}.login-bottom{color:#68736c}.alert-info{color:#275b3c;background:#eef8f1;border-color:#d8ecdf}
@media(max-width:650px){body.login-page{background:#f7f9f7}.login-wrapper{background:radial-gradient(circle at 50% 0%,rgba(22,131,75,.1),transparent 40%),#f7f9f7}.login-container{border-radius:22px;box-shadow:0 18px 50px rgba(24,55,35,.1)}.mobile-brand{color:#111512}.mobile-brand .brand-logo{background:linear-gradient(135deg,#22a45e,#11683b)}}
