/* Token Auth Frontend Styles */

.token-auth-login-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
}

.token-auth-login-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.token-auth-title {
  margin: 0 0 30px 0;
  font-size: 24px;
  font-weight: 600;
  color: #23282d;
  text-align: center;
}

/* Formulario */
.token-auth-form {
  width: 100%;
}

.token-auth-form-group {
  margin-bottom: 25px;
}

.token-auth-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #23282d;
  font-size: 14px;
}

.token-auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: monospace;
  letter-spacing: 2px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.token-auth-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.token-auth-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* Botones */
.token-auth-button {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.token-auth-button-primary {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.token-auth-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.token-auth-button-primary:active {
  transform: translateY(0);
}

.token-auth-button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.token-auth-logout {
  background: #dc3545;
  color: #fff;
}

.token-auth-logout:hover {
  background: #c82333;
  color: #fff;
}

/* Mensajes */
.token-auth-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid;
  font-size: 14px;
}

.token-auth-message p {
  margin: 0 0 10px 0;
}

.token-auth-message p:last-child {
  margin-bottom: 0;
}

.token-auth-success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.token-auth-error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.token-auth-warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.token-auth-info {
  background: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}

/* Loading spinner */
.token-auth-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: token-auth-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes token-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contenido protegido */
.token-auth-protected-content {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 600px) {
  .token-auth-login-container {
    padding: 10px;
  }

  .token-auth-login-box {
    padding: 30px 20px;
  }

  .token-auth-title {
    font-size: 20px;
  }
}

/* Adding auto-login page styles */
/* Auto-login page */
.token-auth-auto-login-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
}

.token-auth-auto-login-box {
  background: #fff;
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  text-align: center;
}

.token-auth-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: token-auth-spin 0.8s linear infinite;
  margin-bottom: 20px;
}

.token-auth-message-text {
  font-size: 16px;
  color: #666;
  margin: 15px 0;
}

@media (max-width: 600px) {
  .token-auth-auto-login-container {
    padding: 10px;
  }

  .token-auth-auto-login-box {
    padding: 40px 20px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.token-auth-message {
  animation: fadeIn 0.3s ease;
}
