/* style.css */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #365886; /* linear-gradient(135deg, #cecece 0%, #b8b8b8 100%); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}
h1 { font-size:28px;}
h2 { font-size:26px; margin: 0;}
h3 { font-size:18px;}
h4 { font-size:16px;}
h5 { font-size:14px;}
h6 { font-size:12px;}
.logo-container {
  text-align: center;
  margin-bottom: 5px;
  animation: fadeInDown 1s ease-out;
}

.logo {
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.3s ease; 
}

.logoB {
    padding: 0px ;
    border: 1px #222 solid;
    box-shadow: 14px 14px 20px #333;
    border-radius: 15px;
    float: left;
}
.logoB { background: hsla(100,100%,100%,1); }

.logo:hover {
  transform: scale(1.05);
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 5px 20px;
  border-radius: 20px;
/*  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05); */
  box-shadow: 14px 14px 20px #333;
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease-out;
}

.login-box h2 {
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-box input {
  width: 100%;
  padding: 15px 20px;
  margin: 12px 0;
  border-radius: 20px;
  border: 2px solid #e1e8ed;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.login-box input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.login-box input::placeholder {
  color: #999;
  font-weight: 300;
}

.login-box .extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: 10px 0;
  color: #666;
}

.login-box .extras label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.login-box .extras input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  margin-left: 0;
}

.login-box .extras a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-box .extras a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.login-box button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #d17a17 0%, #cf6e13 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-box button:active {
  transform: translateY(0);
}

.login-box .version {
  margin-top: 25px;
  font-size: 12px;
  color: #888;
  font-weight: 300;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 30px 25px;
    margin: 0 10px;
  }
  
  .logo {
    max-width: 200px;
  }
  
  .login-box h2 {
    font-size: 24px;
  }
}


.input-container {
  position: relative;
  width: 100%;
  margin: 12px 0;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #999;
  z-index: 2;
  transition: color 0.3s ease;
}

.input-container input {
  width: 100%;
  padding: 15px 20px 15px 55px;
  margin: 0;
  border-radius: 20px;
  border: 2px solid #e1e8ed;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.input-container input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.input-container input:focus + .input-icon,
.input-container input:focus ~ .input-icon {
  color: #667eea;
}

/* Selector de idioma como combobox */
.language-selector-top {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

#language-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

#language-select:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#language-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Remover el selector anterior */
.language-selector {
    display: none;
}

@media (max-width: 480px) {
    .language-selector-top {
        top: 15px;
        left: 15px;
    }
    
    #language-select {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 80px;
    }
}