/* curso_css/css_suma.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: url('../image/buk.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

body.login-page {
  font-family: 'Segoe UI', sans-serif;
  background: url('../image/buk.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.logo {
  width:150px;
  margin-bottom: 1.5em;
}

form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

button {
  padding: 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.links {
  text-align: center;
  margin-top: 12px;
}

.links a {
  color: #004b9c;
  font-size: 0.9em;
  text-decoration: none;
  display: block;
  margin: 3px 0;
}

footer {
  margin-top: 2em;
  text-align: center;
  font-size: 0.8em;
  color: #333;
}

footer a {
  color: #333;
  text-decoration: underline;
  margin: 0 5px;
}

.error {
  text-align: center;
  color: red;
  margin: 10px 0;
}


/* --- Estilos para Reseteo de Contraseña --- */

#reset-container {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#reset-container h4 {
  text-align: center;
  color: #333;
  font-weight: 600;
  margin-bottom: 5px;
}

#reset-container p {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  margin-bottom: 10px;
}

/* Contenedores de cada paso */
#request-code-view,
#validate-code-view,
#reset-password-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espacio entre inputs y botones */
}

/* Mensajes de feedback */
#form-message {
  text-align: center;
  margin: 5px 0;
  font-size: 0.9em;
  font-weight: bold;
}
#form-message.error {
  color: red;
}
#form-message.success {
  color: green;
}

/* Contenedor del temporizador y reenvío */
.timer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

#timer-display {
  font-size: 0.9em;
  color: #888;
}

/* Link de reenvío deshabilitado */
a.disabled {
  color: #999;
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Botón deshabilitado */
button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}
