/* =========================================================
   CERTIFICADOS - LOGIN
   Pegar en: src/css/style.css
   ========================================================= */

body.certificados-page {
  --cert-primary: #6b4fe3;
  --cert-primary-dark: #5a3fd4;
  --cert-primary-soft: #f5f2ff;
  --cert-text: #171717;
  --cert-muted: #6f7282;
  --cert-border: #e5e2ef;
  --cert-surface: #ffffff;
  --cert-bg: #f3f1f8;
  --cert-icon: #ea4e42;
  --cert-shadow: 0 16px 40px rgba(62, 43, 122, 0.08);

  margin: 0;
  min-height: 100vh;
  background: var(--cert-bg);
  color: var(--cert-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.certificados-page *,
.certificados-page *::before,
.certificados-page *::after {
  box-sizing: border-box;
}

.certificados-page a {
  text-decoration: none;
}

/* TOPBAR */
.cert-topbar {
  width: 100%;
  height: 74px;
  background: #ffffff;
  border-bottom: 1px solid rgba(107, 79, 227, 0.08);
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.cert-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cert-brand__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--cert-primary);
  box-shadow: 0 0 0 5px rgba(107, 79, 227, 0.12);
}

.cert-brand__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--cert-primary);
  letter-spacing: -0.02em;
}

/* MAIN */
.cert-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 24px 32px;
}

.cert-card {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  background: var(--cert-surface);
  border: 1px solid rgba(107, 79, 227, 0.08);
  border-radius: 28px;
  box-shadow: var(--cert-shadow);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  padding: 20px;
  min-height: 490px;
}

.cert-card__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px 28px 30px;
}

.cert-card__right {
  display: flex;
}

.cert-copy {
  max-width: 640px;
  margin-bottom: 26px;
}

.cert-copy h1 {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #151515;
}

.cert-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cert-muted);
}

/* FORM */
.cert-form {
  width: 100%;
  max-width: 700px;
}

.cert-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.cert-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #222222;
}

.cert-inputwrap {
  position: relative;
}

.cert-inputwrap input {
  width: 100%;
  height: 58px;
  padding: 0 58px 0 18px;
  border-radius: 16px;
  border: 1px solid var(--cert-border);
  background: #ffffff;
  outline: none;
  font-size: 17px;
  color: #1d1d1d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cert-inputwrap input::placeholder {
  color: #9a9cab;
}

.cert-inputwrap input:focus {
  border-color: rgba(107, 79, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(107, 79, 227, 0.10);
}

.cert-inputicon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: var(--cert-icon);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cert-btn {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--cert-primary-dark) 0%, var(--cert-primary) 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(107, 79, 227, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cert-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(107, 79, 227, 0.28);
  filter: brightness(1.02);
}

.cert-btn:active {
  transform: translateY(0);
}

/* VISUAL */
.cert-visual {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border-radius: 24px;
  background: #f7f4fd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-visual img {
  width: min(62%, 290px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* FOOTER */
.cert-footer {
  margin: 18px auto 0;
  text-align: center;
  font-size: 14px;
  color: #8a8da0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .cert-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cert-card__left {
    padding: 28px 22px 14px;
  }

  .cert-card__right {
    padding: 0;
  }

  .cert-visual {
    min-height: 300px;
  }

  .cert-copy h1 {
    font-size: 44px;
  }
}

@media (max-width: 720px) {
  .cert-topbar {
    padding: 0 18px;
    height: 68px;
  }

  .cert-main {
    padding: 24px 14px 24px;
  }

  .cert-card {
    border-radius: 22px;
    padding: 14px;
    gap: 18px;
  }

  .cert-card__left {
    padding: 18px 10px 6px;
  }

  .cert-copy {
    margin-bottom: 20px;
  }

  .cert-copy h1 {
    font-size: 34px;
    margin-bottom: 12px;
  }

  .cert-copy p {
    font-size: 16px;
  }

  .cert-form__grid {
    grid-template-columns: 1fr;
  }

  .cert-inputwrap input {
    height: 54px;
    font-size: 16px;
  }

  .cert-btn {
    height: 56px;
    font-size: 17px;
    border-radius: 16px;
  }

  .cert-visual {
    min-height: 220px;
  }

  .cert-visual img {
    width: min(56%, 210px);
  }
}