@font-face {
  font-family: 'Comfortaa';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/comfortaa-v47-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Comfortaa';
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/comfortaa-v47-latin-700.woff2') format('woff2');
}

*, *:before, *:after {
  box-sizing: border-box;
}

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

.container {
  padding: 0px;
  margin: 0;
  height: 100%;
  width: 100%;
  background-image: url("https://portal.colpresbga.edu.co/img/turenafondo.jpg");
  background-size: cover;
  color: #fff;
  font-family: "Comfortaa", "Helvetica", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
}

.login {
  max-width: 280px;
  width: 90%;
  min-height: 500px;
  margin: 30px auto;
  background-color: rgba(10, 10, 10, .68);
  border-radius: 16px;
}

.login-icon-field {
  height: 250px;
  width: 100%;
  text-align: center;
}

.login-icon {
  margin: 10px auto 0;
  display: block;
}

/* ── login-form: altura auto para que no comprima los inputs ── */
.login-form {
  padding: 8px 20px 20px;
  height: auto;                     /* ← era 120px, comprimía los inputs */
  width: 100%;
}

.row {
  display: none;
}

/* ── Filas: visibles, con espacio para el input rediseñado ── */
.username-row {
  position: relative;
  height: auto;                     /* ← era 40px fijo */
  border-bottom: none;              /* ← quitamos la línea, el input tiene borde propio */
  margin-bottom: 14px;
}

.password-row {
  position: relative;
  height: auto;                     /* ← era 40px fijo */
  border-bottom: none;
}

.password-icon,
.user-icon {
  margin: 5px;
}

/* Animación SVG — sin cambios */
.password-icon .key-path,
.user-icon .user-path {
  fill: rgba(10, 10, 10, 0);
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  -webkit-animation: dash 3s .3s linear forwards;
  animation: dash 3s .3s linear forwards;
}

.user-icon .user-path {
  -webkit-animation: dash 3s .8s linear forwards;
  animation: dash 3s .8s linear forwards;
}

/* ── Input: ya no position absolute, diseño glass ── */
input {
  position: static;                 /* ← era absolute, causaba el desbordamiento */
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 16px 0 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: "Comfortaa", "Helvetica", sans-serif;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-clip: padding-box;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
button:focus {
  outline: none;
}

input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(34, 192, 138, 0.85);
  box-shadow: 0 0 0 3px rgba(34, 192, 138, 0.18);
}

/* Elimina fondo blanco/azul del autocompletado Chrome/Edge/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(20, 20, 20, 0.75) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px;
  transition: background-color 5000s ease-in-out 0s;
}

input::-webkit-input-placeholder { color: rgba(255, 255, 255, .4); }
input::-moz-placeholder           { color: rgba(255, 255, 255, .4); }
input::placeholder                 { color: rgba(255, 255, 255, .4); }

/* ── Ícono SVG flotante sobre el input ── */
.username-row label,
.password-row label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

.call-to-action {
  margin: 22px 0;
  height: auto;
  width: 100%;
}

button,
.ingresar {
  display: block;
  width: calc(100% - 40px);
  height: 46px;
  padding: 0;
  margin: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  background-color: #22c08a;
  border: none;
  border-radius: 23px;
  cursor: pointer;
  transition: background-color .15s ease-in-out, transform .1s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

button:hover,
.ingresar:hover {
  background-color: #26d69a;
  transform: translateY(-1px);
}

button:active,
.ingresar:active {
  background-color: #1eaa7a;
  transform: translateY(0);
}

p {
  display: inline-block;
  width: 200px;
  margin: 0 40px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
}

p a { color: #fff; }

label,
p a:hover {
  cursor: pointer;
}

@-webkit-keyframes dash {
  to { stroke-dashoffset: 0; }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}


