/* ============================================================
   Hosting del Sur — Custom WordPress Login
   Version: 1.0.6
   Vanta CLOUDS — blue sky + white clouds (cloud hosting metaphor)
   ============================================================ */

/* ---- Google Font: Inter ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --hds-orange: #F07D30;
  --hds-orange-deep: #D96520;
  --hds-orange-rgb: 240, 125, 48;
  --hds-bg: #5aafe0;
  /* sky blue fallback */
  /* Vanta renders the animated sky on top */
  --hds-card: #FFFFFF;
  --hds-text: #1C1008;
  --hds-text-mid: #55341A;
  --hds-text-muted: #9E7A5A;
  --hds-line: rgba(80, 40, 10, 0.14);
  --hds-radius: 20px;
  --hds-t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hds-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
html {
  height: 100%;
}

body.login {
  margin: 0;
  padding: 60px 0 80px;
  min-height: 100vh;
  background: var(--hds-bg);
  /* dark base; Vanta renders over this */
  font-family: var(--hds-font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* ---- Vanta Background Div ---- */
#hds-bg-vanta {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* pointer-events left on so Vanta mouse controls work */
  background: #5aafe0;
  /* sky-blue fallback while Vanta loads */
}

/* Prevent Vanta canvas from blocking clicks on the form */
#hds-bg-vanta canvas {
  pointer-events: none;
}

/* ---- #login wrapper ---- */
body.login #login {
  position: relative;
  z-index: 10;
  width: 420px;
  max-width: 92vw;
  margin: 0 auto;
  padding: 0;
}

/* ---- Logo ---- */
body.login div#login h1 {
  margin: 0;
  padding: 0;
}

body.login div#login h1 a {
  background-image: url('assets/images/logo-light.svg');
  /* color logo — visible on light sky */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 300px;
  height: 112px;
  display: block;
  margin: 0 auto 36px;
  text-indent: -9999px;
  overflow: hidden;
  animation: hds-down 0.6s ease both;
}

/* ---- Badge above form ---- */
body.login #loginform::before,
body.login #registerform::before,
body.login #lostpasswordform::before {
  content: '▶  Área de Acceso';
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hds-orange);
  margin-bottom: 28px;
  padding-left: 1px;
}

/* ---- Form Card ---- */
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
  background: var(--hds-card);
  border-radius: var(--hds-radius);
  /* Left orange accent bar */
  border-left: 5px solid var(--hds-orange);
  box-shadow:
    0 2px 6px rgba(var(--hds-orange-rgb), 0.08),
    0 16px 48px rgba(var(--hds-orange-rgb), 0.12),
    0 40px 80px rgba(30, 12, 0, 0.07);
  padding: 36px 36px 40px 32px;
  position: relative;
  animation: hds-up 0.6s 0.1s ease both;
  margin: 0;
}

/* ---- Field groups ---- */
body.login .login-username,
body.login .login-password {
  margin-bottom: 26px;
}

/* ---- Labels ---- */
body.login label {
  display: block;
  color: var(--hds-text-mid) !important;
  font-family: var(--hds-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px !important;
}

/* ---- Inputs — underline editorial style ---- */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--hds-line) !important;
  border-radius: 0 !important;
  color: var(--hds-text) !important;
  font-family: var(--hds-font) !important;
  font-size: 17px !important;
  font-weight: 400;
  padding: 6px 2px 10px !important;
  height: auto !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: border-color var(--hds-t), box-shadow var(--hds-t);
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-bottom-color: var(--hds-orange) !important;
  box-shadow: 0 2px 0 0 rgba(var(--hds-orange-rgb), 0.22) !important;
  outline: none !important;
  background: transparent !important;
}

/* Password eye toggle */
body.login .wp-pwd .wp-hide-pw {
  position: absolute;
  right: 0;
  bottom: 8px;
  background: transparent;
  border: none;
  color: var(--hds-text-muted);
  cursor: pointer;
  padding: 0;
}

body.login .wp-pwd .wp-hide-pw:hover {
  color: var(--hds-orange);
}

/* Autofill override */
body.login input:-webkit-autofill,
body.login input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 60px #FFFFFF inset !important;
  -webkit-text-fill-color: var(--hds-text) !important;
}

/* ---- Submit row ---- */
body.login .submit {
  margin-top: 34px !important;
}

body.login .button-primary,
body.login input[type="submit"] {
  width: 100% !important;
  background: linear-gradient(135deg, #F08030 0%, #D96520 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: var(--hds-font) !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px !important;
  height: auto !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 20px rgba(var(--hds-orange-rgb), 0.40) !important;
  transition: transform var(--hds-t), box-shadow var(--hds-t), filter var(--hds-t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shimmer */
body.login .button-primary::after,
body.login input[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

body.login .button-primary:hover::after,
body.login input[type="submit"]:hover::after {
  left: 160%;
}

body.login .button-primary:hover,
body.login input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(var(--hds-orange-rgb), 0.50) !important;
  filter: brightness(1.05) !important;
}

body.login .button-primary:active,
body.login input[type="submit"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 10px rgba(var(--hds-orange-rgb), 0.30) !important;
}

/* ---- Remember me ---- */
body.login .forgetmenot {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.login .forgetmenot label {
  color: var(--hds-text-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 0 !important;
}

body.login input[type=checkbox] {
  border-color: var(--hds-line) !important;
}

body.login input[type=checkbox]:checked {
  background-color: var(--hds-orange) !important;
  border-color: var(--hds-orange) !important;
}

body.login input[type=checkbox]:focus {
  box-shadow: 0 0 0 2px rgba(var(--hds-orange-rgb), 0.25) !important;
}

/* ---- Nav links ---- */
body.login #nav,
body.login #backtoblog {
  text-align: center;
  margin-top: 18px;
  animation: hds-up 0.6s 0.22s ease both;
}

body.login #nav a,
body.login #backtoblog a {
  font-family: var(--hds-font);
  color: rgba(10, 30, 60, 0.80);
  /* dark blue, readable on light sky */
  font-size: 14px;
  text-decoration: none;
  transition: color var(--hds-t);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: var(--hds-orange);
}

/* ---- Privacy ---- */
body.login .privacy-policy-page-link {
  text-align: center;
}

body.login .privacy-policy-page-link a {
  font-family: var(--hds-font);
  color: rgba(10, 30, 60, 0.55);
  font-size: 13px;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

body.login .privacy-policy-page-link a:hover {
  color: var(--hds-orange);
}

body.login .privacy-policy-page-link a:hover {
  color: #ffb870;
}

/* ---- Messages ---- */
body.login .message {
  border-left: 3px solid var(--hds-orange);
  background: rgba(var(--hds-orange-rgb), 0.06);
  color: var(--hds-text);
  font-family: var(--hds-font);
  font-size: 14px;
  border-radius: 0 8px 8px 0;
}

body.login #login_error {
  border-left: 3px solid #c0392b;
  background: rgba(192, 57, 43, 0.06);
  color: #7a1a12;
  font-family: var(--hds-font);
  font-size: 14px;
  border-radius: 0 8px 8px 0;
}

/* ---- Footer — fixed at absolute bottom ---- */
#hds-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 24px 14px;
  text-align: center;
  /* Light sky-tinted translucent backdrop */
  background: rgba(200, 228, 248, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(90, 175, 224, 0.40);
  animation: hds-up 0.6s 0.35s ease both;
}

#hds-footer p {
  margin: 0;
  font-family: var(--hds-font);
  font-size: 13px;
  font-weight: 500;
  color: #0d2a45;
  /* dark navy — readable on light blue */
  line-height: 1.5;
}

#hds-footer .hds-footer-slogan {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: #1a4a72;
}

/* ---- Keyframes ---- */
@keyframes hds-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hds-down {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  body.login #login {
    width: 100%;
    max-width: 100%;
  }

  body.login #loginform {
    padding: 28px 20px 32px 18px;
    border-radius: 14px;
  }

  body.login div#login h1 a {
    width: 230px;
    height: 86px;
    margin-bottom: 28px;
  }

  body.login input[type="text"],
  body.login input[type="password"] {
    font-size: 16px !important;
  }
}