* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #141414;
  color: #ffffff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
}

.app-container {
  width: 100%;
  background-color: #141414;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 5px 0 24px 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  width: 100%;
  max-width: 600px;
}

@media (max-width: 400px) {
  .main-content {
    max-width: 100%;
  }
}

.app-header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.brand-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.top-text {
  margin-bottom: 20px;
  margin-top: 120px;
}

.verify-text {
  text-align: center;
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: 16px;
  color: #a0a0a0;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  margin-top: auto;
  width: 100%;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-input {
  width: 100%;
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px 16px 8px 16px;
  font-size: 16px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #ffffff;
}

/* Evita el fondo blanco al autocompletar correo o contraseña */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #141414 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 5000s ease-in-out 0s;
}

.form-input.error {
  border-color: #d9534f;
}

.error-text {
  display: none;
  color: #d9534f;
  font-size: 12px;
  margin-top: 4px;
  margin-left: 4px;
}

.error-text.show {
  display: block;
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  transition: all 0.2s ease;
  pointer-events: none;
  padding: 0 6px;
  background-color: #141414;
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
  top: 0;
  font-size: 12px;
  color: #a0a0a0;
  transform: translateY(-50%);
}

.icon-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 10;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

#eye-open-email, #eye-closed-email, #eye-open, #eye-closed {
  width: 20px;
  height: 20px;
}

.forgot-container {
  text-align: right;
  margin-bottom: 32px;
}

.forgot-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background-color: #2a2a2a;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s;
}

.btn-primary:not(:disabled) {
  background-color: #ffffff;
  color: #121212;
  cursor: pointer;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Botón apagado -> muestra moana1.webp */
.btn-primary:disabled .btn-icon-active {
  display: none;
}

.btn-primary:disabled .btn-icon-disabled {
  display: inline-block;
}

/* Botón activo -> muestra monass.webp */
.btn-primary:not(:disabled) .btn-icon-disabled {
  display: none;
}

.btn-primary:not(:disabled) .btn-icon-active {
  display: inline-block;
}

.register-container {
  text-align: center;
  font-size: 14px;
  color: #a0a0a0;
  margin-bottom: 10px;
}

.register-container a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.register-container a:hover {
  text-decoration: underline;
}

.back-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.back-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* ===== ESTILOS PARA LOS 6 CUADRITOS (MÁS JUNTOS Y COMPACTOS) ===== */
.verify-inputs-container {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.verify-box {
  width: 42px;
  height: 48px;
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  appearance: textfield;
}

.verify-box:focus {
  border-color: #ffffff;
  background-color: #1c1c1c;
}

/* Quitamos las flechitas del input number */
.verify-box::-webkit-outer-spin-button,
.verify-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== SPINNER BLANCO CENTRADO ===== */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-overlay.show {
  display: flex;
}

.spinner-white {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}