<style type="text/css">
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-size: 10px;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  background-image: url("background.jpg");
  background-position: left top;
  background-repeat: no-repeat;
  background-color: #FAFAFA;
}

/* Centrado absoluto */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 35vh;   
  box-sizing: border-box;
}

/* Fila de los 4 elementos */
.login-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  flex-wrap: wrap;
	margin-top: -15vh;
}

/* Logos */
.logo img {
  max-width: 180px;
  height: auto;
}

/* Texto */
.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.vdirektor_titulo {
  font-size: 32px;
  font-weight: bold;
}

.vdirektor_subtitulo {
  font-size: 14px;
  color: #666;
}

/* Login */
.login-box {
  background: white;
  padding: 16px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-box input {
  width: 220px;
  padding: 6px;
}

.login-box button {
  width: 100px;
  align-self: center;
  cursor: pointer;
}

.forgot {
  text-align: center;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .login-row {
    flex-direction: column;
  }
}

.login-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lock img {
  width: 60px;
  height: auto;
}

/* En mobile, candado abajo */
@media (max-width: 900px) {
  .login-inner {
    flex-direction: column;
  }
}

.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label {
  width: 90px;          /* clave */
  text-align: left;
  font-size: 14px;
}

.login-box input {
  width: 220px;         /* todos iguales */
  padding: 6px;
  box-sizing: border-box;
}

.vdirektor_titulo {
  padding: 1px;
  color: #575795;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  font-size: 26px;
}

.vdirektor_subtitulo {
  padding: 1px;
  color: #575795;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
}

.divider {
  width: 0;
  height: 80px;
  border-left: 2px dashed #575795;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .error_login {
    font-size: 14px;
  }
	.login-row {
    transform: translateY(-10vh);
  }
	.login-logos img {
    height: 32px;
  }
}

html, body {
  height: 100%;
  margin: 0;
}

.error_login {
  display: block;
  margin-top: 10px;
  padding: 6px 10px;

  color: #a10000;
  background-color: #fdeaea;
  border: 1px solid #f5b5b5;
  border-radius: 4px;

  font-size: 12px;
  text-align: center;
	animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.login-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
	padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.login-logos img {
  height: 80px;
  width: auto;
  opacity: 0.85;
}

</style>
