@font-face {
  font-family: "Bolivar";
  src: url("Bolivar-Regular.otf") format("opentype");
}

:root {
  --primary: #25a479;
  --text-dark: #4c4e53;
  --text-muted: #9b9b9b;
  --border: #caced7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Bolivar", sans-serif;
  background: #f0f0f0;
}

.login {
  min-height: 100dvh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;

  background: linear-gradient(
      180deg,
      rgba(94, 165, 102, 0) 50%,
      rgba(94, 165, 102, 0.8)
    ),
    url("assets-router/images/background.png") no-repeat center / cover;
}

.login-card {
  width: 565px;
  height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.principal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.login-header {
  padding: 100px 80px 0;
  text-align: center;
}

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

.login-header h1 {
  font-family: "Bolivar";
  font-size: 32px;
  color: var(--primary);
  margin: 0;
}

.login-header h2 {
  font-family: "Bolivar";
  font-size: 18px;
  color: var(--text-dark);
  margin: 8px 10px 0;
}

.login-form {
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: "Bolivar";
  font-size: 14px;
  color: var(--text-dark);
}

.form-group label span {
  color: var(--text-muted);
}

.input-icon {
  position: relative;
}

.input-icon img {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.input-icon input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.btn-primary {
  align-self: center;
  padding: 8px 24px;
  border-radius: 24px;
  border: none;

  background: var(--primary);
  color: #ffffff;

  font-family: "Bolivar";
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
}

.login-footer {
  padding: 40px 68px;
  display: flex;
  justify-content: center;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #eefbf5 100%);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logos img {
  width: 170px;
  object-fit: contain;
}

.footer-divider {
  width: 1px;
  height: 51px;
  background-color: #ccc;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: #07070759;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  position: relative;
  width: 383px;
  padding: 15px 30px 40px;
  border-radius: 10px;
  background: var(--White, #fff);
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-close img {
  width: 16px;
  height: 16px;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.modal-image {
  margin-top: 20px;
}

.modal-content h2 {
  font-family: "Bolivar";
  font-size: 18px;
  color: #25a479;
  margin: 0;
}

.modal-text {
  font-size: 14px;
  font-weight: 400;
  color: #4c4e53;
  margin: 0;
}

.modal-text.bold {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

.btn-contacto{
  text-decoration: none
}

@media (max-width: 768px) {
  .login {
    padding: 10px;
    justify-content: center;
    background: url("assets-router/images/background-res.png") no-repeat center / cover;
  }

  .login-card {
    width: 90%;
    height: auto;
  }

  .login-header {
    padding: 60px 20px 0;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .login-form {
    padding: 0 20px;
    gap: 30px;
  }

  .login-footer {
    padding: 20px;
  }

  .footer-logos img {
    width: 120px;
  }

  .modal{
    width: 80%;
  }

  .only-desktop {
    display: none;
  }
}