:root {
  --color-gray-50: oklch(98.5% 0.002 247.839);
  --color-gray-100: oklch(96.7% 0.003 264.542);
  --color-gray-200: oklch(92.8% 0.006 264.531);
  --color-gray-300: oklch(87.2% 0.01 258.338);
  --color-gray-400: oklch(70.7% 0.022 261.325);
  --color-gray-500: oklch(55.1% 0.027 264.364);
  --color-gray-600: oklch(44.6% 0.03 256.802);
  --color-gray-700: oklch(37.3% 0.034 259.733);
  --color-gray-800: oklch(27.8% 0.033 256.848);
  --color-gray-900: oklch(21% 0.034 264.665);
  --color-custom-yellow: #f3a406;
  --color-primary: #002b45;
  --color-primary-dark: #09161e;
}

/* Universal reset for margins, padding, and box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-primary-dark);
}

header {
  background-color: var(--color-primary-dark);
  padding-block: 0.3rem;
  padding-inline: 20px;
}

@media (min-width: 1024px) {
  header {
    padding-inline: 40px;
  }
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background-color: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  body {
    height: 100vh;
  }
}

.content {
  background: rgba(9, 22, 30, 0.88);
  border-radius: 10px;
  backdrop-filter: blur(4.5px);
  position: absolute;
  top: 0;
  margin-block: 10px;
  transform: translateX(-50%);
  color: var(--color-gray-100);
  max-width: 800px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding: 26px;
  width: 95%;
}

.login-container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/graduacion-2024.webp");
  background-position: center;
  background-size: cover;
  height: 100vh;
}

b {
  font-weight: 600;
}

.logo-container {
  display: flex;
  justify-content: start;
}

header > img,
.logo-container > img {
  width: 180px;
  height: auto;
}

@media (min-width: 768px) {
  .logo-container {
    justify-content: center;
  }

  header > img,
  .logo-container > img {
    width: 239px;
  }
}

.cert-container {
  font-family: "Outfit", sans-serif;
  height: 100%;
  display: flex;
  width: 100%;
  background: var(--color-gray-50);
}

.container > form {
  height: 100%;
}

.cert-content {
  height: 100%;
}

.cert-info {
  padding: 30px 20px;
  gap: 1.25rem;
  display: flex;
  flex-direction: column;
}

.cert-info p {
  font-size: 16px;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .cert-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cert-info {
    padding: 50px 40px;
  }
  .cert-info p {
    font-size: 18px;
  }
}

.cert-btns {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.cert-btns a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-gray-900);
  background-color: var(--color-custom-yellow);
  padding: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cert-btns a:hover {
  filter: brightness(0.9);
  cursor: pointer;
}

.cert-iframe {
  margin-right: 4px;
}

.cert-iframe iframe {
  width: 100%;
  height: 500px;
}

@media (min-width: 1024px) {
  .cert-iframe iframe {
    height: 100%;
  }
  .cert-iframe {
    margin-bottom: 4px;
  }
}

@media (min-width: 768px) {
  .content {
    position: absolute;
    top: 50%;
    padding: 32px;
    transform: translate(-50%, -50%);
    height: fit-content;
  }
}

h1 {
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.2;
}

h2 {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-gray-500);
  font-style: italic;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}

.description {
  color: var(--color-gray-300);
  font-size: 16px;
  font-weight: 300;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .input-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.input-container {
  position: relative;
}

.custom-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-gray-400);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-right: 1rem;
  font-size: 1rem;
  box-sizing: border-box;
  background: transparent;
  color: var(--color-gray-100);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
}

.custom-input::placeholder {
  color: var(--color-gray-300);
}

.required-asterisk {
  position: absolute;
  right: 10px;
  top: 6px;
  color: var(--color-custom-yellow);
  pointer-events: none;
}

/* Textarea */
.textarea-group {
  position: relative;
}

.custom-textarea {
  display: flex;
  min-height: 100px;
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--color-gray-400);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
  font-family: "Outfit", sans-serif;
  color: var(--color-gray-100);
}

.custom-textarea::placeholder {
  color: var(--color-gray-300);
  font-weight: 300;
}

/* Base Button Structure & Shared Styles */
.custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  flex-shrink: 0;
  background-color: var(--color-custom-yellow);
  gap: 0.5rem;
  border: none;
  border-radius: 2px;
  font-family: "Outfit", sans-serif;
  color: var(--color-gray-900);
}

.btn-custom-yellow {
    background-color: var(--color-custom-yellow);
    color: var(--color-gray-900);
}

.btn-custom-yellow:hover,
.custom-btn:hover {
  filter: brightness(0.9);
}

.custom-btn:disabled,
.custom-btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

.btn-icon {
  pointer-events: none;
  min-width: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 350ms ease-in-out;
}

footer {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  font-weight: 300;
  text-align: end;
}

.Labels {
  display: none;
}

.error > h1 {
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.error > p {
  font-size: 1.125rem;
}