* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   VARIABLES
========================================= */

:root {
  --primary: #d87093;
  --primary-dark: #c45f82;
  --secondary: #3b6e8c;

  --dark: #1f2937;
  --text: #374151;
  --muted: #6b7280;

  --border: #e5e7eb;
  --white: #ffffff;

  --shadow: 0 30px 80px rgba(31, 41, 55, 0.18);
}

/* =========================================
   BODY
========================================= */

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  background: linear-gradient(135deg, #3b6e8c 0%, #345f79 45%, #d87093 100%);

  color: var(--text);
}

/* =========================================
   PAGE
========================================= */

.login-page {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px 20px;

  position: relative;

  overflow: hidden;
}

/* =========================================
   BACKGROUND DECORATION
========================================= */

.background-shape {
  position: absolute;

  border-radius: 50%;

  filter: blur(2px);

  pointer-events: none;
}

.shape-one {
  width: 420px;
  height: 420px;

  background: rgba(255, 255, 255, 0.08);

  top: -180px;
  left: -150px;
}

.shape-two {
  width: 500px;
  height: 500px;

  background: rgba(216, 112, 147, 0.18);

  bottom: -250px;
  right: -180px;
}

.shape-three {
  width: 180px;
  height: 180px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  top: 15%;
  right: 12%;
}

/* =========================================
   CONTAINER
========================================= */

.login-container {
  width: 100%;
  max-width: 370px;

  position: relative;

  z-index: 2;
}

/* =========================================
   CARD
========================================= */

.login-card {
  background: rgba(255, 255, 255, 0.97);

  border: 1px solid rgba(255, 255, 255, 0.7);

  border-radius: 28px;

  padding: 42px;

  box-shadow: var(--shadow);

  animation: cardEnter 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);

  position: relative;

  overflow: hidden;
}

/* Línea superior decorativa */

.login-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* =========================================
   ANIMATION
========================================= */

@keyframes cardEnter {
  from {
    opacity: 0;

    transform: translateY(25px) scale(0.97);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* =========================================
   HEADER
========================================= */

.login-header {
  text-align: center;

  margin-bottom: 32px;
}

/* =========================================
   LOGO
========================================= */

.logo-wrapper {
  width: 100px;
  height: 100px;

  margin: 0 auto 20px;

  border-radius: 24px;

  background: #fff;

  display: flex;

  justify-content: center;
  align-items: center;

  box-shadow: 0 12px 30px rgba(59, 110, 140, 0.14);

  border: 1px solid #f1f1f1;

  position: relative;
}

.logo-wrapper::after {
  content: "";

  position: absolute;

  inset: -6px;

  border-radius: 28px;

  border: 1px solid rgba(216, 112, 147, 0.18);

  pointer-events: none;
}

.logo-wrapper img {
  width: 78px;
  height: 78px;

  object-fit: contain;

  display: block;
}

/* =========================================
   BADGE
========================================= */

.welcome-badge {
  display: inline-flex;

  align-items: center;

  padding: 6px 11px;

  border-radius: 999px;

  background: rgba(216, 112, 147, 0.09);

  color: var(--primary-dark);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1.2px;

  margin-bottom: 10px;
}

/* =========================================
   TITLE
========================================= */

.welcome-text h1 {
  font-size: 29px;

  line-height: 1.2;

  color: var(--dark);

  font-weight: 750;

  letter-spacing: -0.7px;

  margin-bottom: 8px;
}

.welcome-text p {
  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;

  max-width: 290px;

  margin: auto;
}

/* =========================================
   FORM
========================================= */

.login-form {
  width: 100%;
}

/* =========================================
   INPUT GROUP
========================================= */

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;

  font-size: 13px;

  font-weight: 650;

  color: #374151;

  margin-bottom: 8px;
}

/* =========================================
   INPUT WRAPPER
========================================= */

.input-wrapper {
  position: relative;

  width: 100%;
}

/* =========================================
   INPUT ICON
========================================= */

.input-icon {
  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  width: 19px;
  height: 19px;

  color: #8b98a5;

  display: flex;

  align-items: center;
  justify-content: center;

  pointer-events: none;

  transition: 0.25s ease;
}

.input-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;

  stroke-linejoin: round;
}

/* =========================================
   INPUT
========================================= */

.input-wrapper input {
  width: 100%;

  height: 52px;

  border-radius: 13px;

  border: 1px solid #dfe4e8;

  background: #fafbfc;

  padding: 0 48px 0 45px;

  color: #1f2937;

  font-size: 14px;

  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.input-wrapper input::placeholder {
  color: #a1aab3;
}

.input-wrapper input:hover {
  border-color: #cbd5dc;

  background: #fff;
}

.input-wrapper input:focus {
  border-color: var(--primary);

  background: #fff;

  box-shadow: 0 0 0 4px rgba(216, 112, 147, 0.1);
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

/* =========================================
   PASSWORD BUTTON
========================================= */

.toggle-pass {
  position: absolute;

  right: 14px;
  top: 50%;

  transform: translateY(-50%);

  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: none;

  background: transparent;

  color: #8b98a5;

  cursor: pointer;

  border-radius: 8px;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.toggle-pass:hover {
  background: rgba(59, 110, 140, 0.08);

  color: var(--secondary);
}

.toggle-pass svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;

  stroke-linejoin: round;
}

/* =========================================
   OPTIONS
========================================= */

.login-options {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin: -2px 0 22px;

  font-size: 12px;
}

.remember {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #66727d;

  cursor: pointer;
}

.remember input {
  accent-color: var(--primary);
}

.forgot-link {
  color: var(--secondary);

  text-decoration: none;

  font-weight: 600;

  transition: 0.2s;
}

.forgot-link:hover {
  color: var(--primary);
}

/* =========================================
   ERROR
========================================= */

.error-box {
  display: flex;

  align-items: center;

  gap: 10px;

  background: #fff3f5;

  color: #b84262;

  border: 1px solid #f5c8d2;

  padding: 12px 14px;

  border-radius: 12px;

  margin-bottom: 20px;

  font-size: 13px;

  line-height: 1.4;

  animation: errorShake 0.35s ease;
}

.error-icon {
  flex-shrink: 0;

  width: 23px;
  height: 23px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #d87093;

  color: white;

  font-size: 13px;

  font-weight: 800;
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* =========================================
   LOGIN BUTTON
========================================= */

.btn-login {
  width: 100%;

  height: 54px;

  border: none;

  border-radius: 14px;

  background: var(--primary);

  color: white;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.1px;

  cursor: pointer;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 10px;

  position: relative;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-login::before {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );

  transform: skewX(-20deg);
  transition: 0.6s ease;
}

.btn-login:hover::before {
  left: 140%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(59, 110, 140, 0.22);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-login svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.btn-login:hover svg {
  transform: translateX(4px);
}

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

.login-footer {
  text-align: center;

  margin-top: 28px;

  padding-top: 22px;

  border-top: 1px solid #edf0f2;
}

.security-info {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  color: #71808b;

  font-size: 11px;

  font-weight: 600;

  margin-bottom: 9px;
}

.security-icon {
  width: 18px;
  height: 18px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--secondary);
}

.security-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;

  stroke-linecap: round;

  stroke-linejoin: round;
}

.login-footer small {
  color: #a0a8af;

  font-size: 10px;
}

/* =========================================
   PASSWORD NATIVE ICON
========================================= */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

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

@media (max-width: 520px) {
  .login-page {
    padding: 25px 16px;
  }

  .login-card {
    padding: 35px 25px;

    border-radius: 23px;
  }

  .logo-wrapper {
    width: 88px;
    height: 88px;

    border-radius: 21px;
  }

  .logo-wrapper img {
    width: 68px;
    height: 68px;
  }

  .welcome-text h1 {
    font-size: 26px;
  }

  .welcome-text p {
    font-size: 13px;
  }

  .input-wrapper input {
    height: 50px;
  }

  .btn-login {
    height: 52px;
  }
}

@media (max-height: 700px) {
  .login-page {
    align-items: flex-start;

    padding-top: 25px;
    padding-bottom: 25px;
  }

  .login-card {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .logo-wrapper {
    width: 75px;
    height: 75px;

    margin-bottom: 14px;
  }

  .logo-wrapper img {
    width: 58px;
    height: 58px;
  }

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