@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f8faff, #e4ecf7);
  font-family: 'Share Tech Mono', monospace;
  color: #0d47a1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  background: #ffffff;
  border: 2px solid #1976d2;
  border-radius: 12px;
  padding: 30px 40px;
  width: 380px;
  box-shadow: 0 0 15px rgba(25, 118, 210, 0.3);
  text-align: center;
  user-select: none;
}

h1 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: #1565c0;
  text-shadow: 0 0 5px rgba(21, 101, 192, 0.3);
}

.password-display {
  background: #f0f4ff;
  border: 2px solid #1976d2;
  border-radius: 8px;
  padding: 15px 10px;
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: #0d47a1;
  word-break: break-all;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 12px;
}

.options label {
  font-size: 0.95rem;
  cursor: pointer;
}

.options input[type="number"] {
  width: 60px;
  margin-left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #1976d2;
  background: #fff;
  color: #0d47a1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.options input[type="number"]:focus {
  border-color: #1565c0;
  box-shadow: 0 0 6px rgba(21, 101, 192, 0.4);
}

button {
  background: #1976d2;
  border: none;
  color: white;
  padding: 10px 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin: 0 8px 10px 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

button:disabled {
  background: #90caf9;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background: #1565c0;
  box-shadow: 0 0 12px rgba(21, 101, 192, 0.6);
}

.message {
  font-size: 0.9rem;
  height: 20px;
  color: #1565c0;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  user-select: none;
}

.message.show {
  opacity: 1;
}

/* Animaciones */

.password-display.flash {
  animation: flashBg 0.4s ease;
}

@keyframes flashBg {
  0% {
    background-color: #bbdefb;
    color: #0d47a1;
  }
  100% {
    background-color: #f0f4ff;
    color: #0d47a1;
  }
}
