@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --green: #00a84f;
  --green-dark: #008941;
  --text: #19221e;
  --muted: #5d5d5d;
  --border: #dcdcdc;
  --background: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ==============================
   LAYOUT
   ============================== */

.login-page {
  flex: 1;
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 0;
}

/* ==============================
   LEFT SIDE / HERO
   ============================== */

.hero {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: white;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .48),
      rgba(0, 0, 0, .08) 75%
    ),
    url("../img/img_tejo.png")
    center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .15) 0%,
      rgba(0, 0, 0, .02) 40%,
      rgba(0, 0, 0, .58) 100%
    );
}

/* ==============================
   HERO MESSAGE
   ============================== */

.hero-message {
  position: absolute;
  z-index: 2;
  left: 64px;
  bottom: clamp(100px, 20vh, 195px);
}

.accent {
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: clamp(15px, 2.5vh, 27px);
  border-radius: 4px;
  background: #00a653;
}

.hero-message h1 {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 62px);
  line-height: .98;
  letter-spacing: -2.5px;
  font-weight: 800;
}

.hero-message h1 span {
  font-weight: 500;
}

.hero-message p {
  margin: clamp(15px, 2.5vh, 27px) 0 0;
  max-width: 480px;
  color: rgba(255,255,255,.87);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
}

/* ==============================
   FEATURES
   ============================== */

.features {
  position: absolute;
  z-index: 2;
  left: 64px;
  right: 50px;
  bottom: clamp(20px, 4vh, 48px);

  display: flex;
  gap: clamp(25px, 4vw, 65px);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  display: grid;
  place-items: center;

  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 50%;

  font-size: 15px;
}

.feature strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.feature small {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.35;
}

/* ==============================
   LOGIN AREA
   ============================== */

.login-area {
  position: relative;
  background: #fff;
  padding: clamp(20px, 3vh, 40px) clamp(30px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.login-card {
  max-width: 420px;
  width: 100%;
  margin: clamp(10px, 2vh, 40px) auto 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 10px 0;
}

.login-card h2 {
  font-size: 20px;
  margin-bottom: 11px;
  font-weight: 700;
}

.login-description {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 330px;
    color: var(--muted);
}

/* ==============================
   FORM
   ============================== */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #ffffff;
    padding: 0 12px;
    outline: none;
    font-size: 12px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder {
    color: #b1b1b1;
}

.form-group input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 168, 79, 0.08);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 42px;
}

.show-password {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #8a8a8a;
    font-size: 14px;
    padding: 0;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -2px;
  margin-bottom: 20px;
  font-size: 11px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
}

.remember input {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
}

/* ==============================
   BUTTONS
   ============================== */

.login-button {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.login-button:hover {
  background: var(--green-dark);
}

.login-button span:first-child {
    justify-self: center;
}

/* ==============================
   SECURITY MESSAGE
   ============================== */

.secure {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    #eff9f3,
    #e7f5ed
  );
}

.secure-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}

.secure strong {
  display: block;
  margin-bottom: 4px;
  color: #087d43;
  font-size: 13px;
}

.secure p {
  margin: 0;
  color: #4e5b55;
  font-size: 11px;
  line-height: 1.4;
}

/* ==============================
   FOOTER
   ============================== */

footer {
  height: 52px;
  min-height: 52px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
  padding: 0 42px;

  border-top: 1px solid #e8ebe9;
  background: #fff;

  color: #6c7571;
  font-size: 12px;
}

footer nav {
  display: flex;
  align-items: center;
  gap: 13px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--green);
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 1050px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  .login-page {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .hero {
    height: auto;
    min-height: 380px;
  }

  .hero-message {
    left: 42px;
  }

  .features {
    left: 42px;
    right: 25px;
    gap: 20px;
  }

  .login-area {
    padding-left: 42px;
    padding-right: 42px;
    overflow-y: visible;
    height: auto;
  }
}

@media (max-width: 800px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  .login-page {
    display: flex;
    flex-direction: column;
  }

  .hero {
    height: auto;
    min-height: 360px;
  }

  .hero-message {
    left: 30px;
    bottom: 90px;
  }

  .hero-message h1 {
    font-size: 32px;
  }

  .hero-message p {
    font-size: 14px;
    margin-top: 12px;
  }

  .features {
    left: 30px;
    bottom: 20px;
    gap: 15px;
  }

  .feature small {
    display: none;
  }

  .login-area {
    padding: 30px 28px;
    position: relative;
    overflow-y: visible;
  }

  .login-card {
    margin-top: 10px;
    max-width: 100%;
  }

  footer {
    height: auto;
    padding: 15px 20px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}

/* ==============================
   LOGO
   ============================== */

.brand-large-img {
    height: clamp(65px, 6vw, 110px);
    width: auto;
    margin-bottom: 54px;
    display: block;
}