* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Inter', 'Roboto', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 18px;
  box-sizing: border-box;
  color: #fff;
  background: 
    radial-gradient(
      circle at 22% 26%,
      rgba(0, 101, 189, 0.25) 0%,
      rgba(0, 101, 189, 0) 30%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(115, 68, 110, 0.22) 0%,
      rgba(115, 68, 110, 0) 35%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(20, 60, 140, 0.12) 0%,
      rgba(20, 60, 140, 0) 40%
    ),
    linear-gradient(
      160deg,
      rgb(4, 6, 18) 0%,
      rgb(7, 19, 37) 45%,
      rgb(10, 23, 48) 100%
    );
}

.login-logo-hero {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo-hero .login-logo,
.login-logo-hero img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.22));
}

.verificacion-card {
    width: 48vw;
    max-width: 950px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    flex: none;
    align-self: center;
}

.container {
  margin-top: 55px;
  box-sizing: border-box;
  padding: 38px 62px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 44, 0.72) 0%,
    rgba(15, 21, 40, 0.78) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  border-radius: 34px;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.titulo-seguro-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.icono-seguro {
  width: 88px;
  max-width: 88px;
  height: auto;
  flex: 0 0 auto;
}

.titulo-seguro-header h1 {
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  color: #f4f6f8;
  font-family: 'Inter', 'Roboto', sans-serif;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.text-secondary {
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px auto;
  color: rgba(255, 255, 255, 0.60);
  font-weight: 400;
}

.input-group {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

input[type="text"] {
  width: 100%;
  height: 62px;
  min-height: 62px;
  padding: 0 24px;
  box-sizing: border-box;
  border-radius: 20px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: all 0.3s ease;
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 101, 189, 0.9);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(0, 101, 189, 0.2);
}

button {
  width: 100%;
  min-height: 62px;
  box-sizing: border-box;
  margin-top: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0873bd 0%, #055b9e 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

button:hover:not(:disabled) {
  background: linear-gradient(135deg, #0a85da 0%, #0669b6 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  background: #2a3b5c;
  color: #6b778c;
  cursor: not-allowed;
  box-shadow: none;
}

.resultado {
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 30px;
  border-radius: 20px;
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.valido {
  background: rgba(10, 40, 25, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.valido h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.resultado-lista {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}

.resultado-lista li {
  margin-bottom: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.resultado-lista strong {
  color: #ffffff;
  font-weight: 600;
}

.invalido {
  background: rgba(60, 15, 20, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.invalido p {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

.btn-secundario {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.btn-secundario:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .verificacion-card {
      width: calc(100% - 32px);
  }
  .container {
    padding: 36px 24px;
    border-radius: 28px;
  }
  
  .titulo-seguro-header {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .titulo-seguro-header h1 {
    font-size: 48px;
    white-space: normal;
    text-align: center;
  }
  
  .icono-seguro {
    width: 72px;
    max-width: 72px;
  }
}

@media (max-width: 480px) {
  .titulo-seguro-header h1 {
    font-size: 38px;
  }

  .container {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

@media (min-width: 769px) and (max-height: 800px) {
    .verificacion-card {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-height: 500px) and (min-width: 500px) {
    body {
        padding-top: 28px;
        padding-bottom: 8px;
        justify-content: flex-start;
    }

    .login-logo-hero {
        margin-top: 8px;
        margin-bottom: 6px;
    }

    .login-logo-hero .login-logo,
    .login-logo-hero img {
        max-width: 330px;
    }

    .verificacion-card {
        margin-top: 10px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .titulo-seguro-header {
        gap: 14px;
        margin-bottom: 10px;
    }

    .icono-seguro {
        width: 62px;
        max-width: 62px;
    }

    .titulo-seguro-header h1 {
        font-size: 46px;
        line-height: 1;
    }

    .subtitle {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .text-secondary {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    #codigo {
        min-height: 48px;
        height: 48px;
    }

    #btn-verificar {
        min-height: 48px;
        margin-top: 10px;
    }
}
