/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(120deg, #232526 0%, #414345 40%, #6e7a8a 80%, #232526 100%);
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo difuminado tipo glass */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #232526 0%, #414345 40%, #6e7a8a 80%, #232526 100%);
  filter: blur(24px);
  z-index: 0;
}

.center-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.glass-box {
  background: rgba(30, 32, 38, 0.70);
  border-radius: 32px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 48px 32px 32px 32px;
  width: 100%;
  max-width: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#Identifier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 40px;
}
#Identifier span {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Contenedor del logo alineado a la izquierda */
.logo-container.left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
}

.login-logo {
  max-width: 110px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* Campos de entrada tipo underline */
.loginField {
  margin-bottom: 24px;
}
.loginFieldLabel {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
  opacity: 0.85;
}
.loginFieldInput {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 0;
  padding: 0 0 8px 0;
  transition: border-color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
}
.loginFieldInput:focus-within {
  border-bottom: 1.5px solid #fff;
}
.loginFieldInput input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.08rem;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-weight: 400;
  padding: 0;
}
.loginFieldInput input::placeholder {
  color: #fff;
  font-weight: 400;
  opacity: 0.6;
}

/* Enlace Olvidaste tu contraseña */
.loginFieldLabel a {
  color: #fff;
  opacity: 0.7;
  font-size: 0.98em;
  text-decoration: underline dotted;
  transition: opacity 0.2s, text-decoration 0.2s;
}
.loginFieldLabel a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Checkbox minimalista */
input[type="checkbox"] {
  accent-color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid #fff;
  background: transparent;
  margin-right: 8px;
  vertical-align: middle;
}
label[for="rememberMe"] {
  color: #fff;
  font-size: 1.01rem;
  opacity: 0.8;
  cursor: pointer;
}

/* Botón principal (negro) */
#LoginButton {
  width: 100%;
  margin-top: 24px;
  padding: 16px 0;
  background: #18181a;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  letter-spacing: 0.2px;
}
#LoginButton:hover {
  background: #222226;
  transform: scale(1.02);
}
#LoginButton:active {
  background: #111112;
  transform: scale(0.98);
}

/* Botón alternativo (blanco) */
.apple-faceid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 16px 0;
  background: #fff;
  color: #18181a;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.apple-faceid-btn:hover {
  background: #f3f3f3;
  transform: scale(1.01);
}
.apple-faceid-btn svg {
  margin-right: 8px;
}

/* Enlace de registro */
.login-register-link {
  margin-top: 32px;
  text-align: center;
  font-size: 1.01rem;
  color: #fff;
  opacity: 0.9;
}
.login-register-link a {
  color: #fff;
  text-decoration: underline dotted;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.2s, text-decoration 0.2s;
}
.login-register-link a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Estados de éxito y error */
.glass-box.success {
  border-color: rgba(50, 215, 75, 0.3);
  box-shadow: 0 8px 32px 0 rgba(50, 215, 75, 0.1);
}

.glass-box.error {
  border-color: rgba(255, 69, 58, 0.3);
  box-shadow: 0 8px 32px 0 rgba(255, 69, 58, 0.1);
}

.loginField.error {
  border-bottom-color: rgba(255, 69, 58, 0.8);
}

#ServerBox {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
}

#ServerBox.show {
  display: block;
}

#ServerBox.success {
  background: rgba(50, 215, 75, 0.1);
  color: #32d74b;
  border: 1px solid rgba(50, 215, 75, 0.2);
}

#ServerBox.error {
  background: rgba(255, 69, 58, 0.1);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.2);
}

/* Botón de registro Face ID */
button[onclick="registerBiometricCredential"] {
  opacity: 0.7;
  transition: opacity 0.2s;
}

button[onclick="registerBiometricCredential"]:hover {
  opacity: 1;
}

/* Responsive para móvil */
@media (max-width: 600px) {
  .glass-box {
    max-width: 100vw;
    border-radius: 0;
    min-height: 100vh;
    padding: 32px 12px 24px 12px;
  }
  #Identifier span {
    font-size: 1.5rem;
  }
  .login-register-link {
    font-size: 0.98rem;
  }
} 