/* Authentication UI Styles */

.auth-container {
  max-width: 450px;
  margin: 50px auto;
  padding: 40px;
  background: rgba(0, 20, 40, 0.9);
  border: 2px solid #0ff;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.auth-tab {
  flex: 1;
  padding: 15px;
  background: transparent;
  border: none;
  color: rgba(0, 255, 255, 0.6);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.auth-tab:hover {
  color: #0ff;
}

.auth-tab.active {
  color: #0ff;
  border-bottom-color: #0ff;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #0ff;
  font-size: 0.9em;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  color: #0ff;
  font-size: 1em;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #0ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-group input::placeholder {
  color: rgba(0, 255, 255, 0.4);
}

.auth-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0ff, #00cccc);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-button:hover {
  background: linear-gradient(135deg, #00cccc, #0ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

.auth-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  font-size: 0.9em;
}

.auth-message.success {
  background: rgba(0, 255, 0, 0.2);
  border: 1px solid #0f0;
  color: #0f0;
}

.auth-message.error {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid #f00;
  color: #f00;
}

.auth-link {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: rgba(0, 255, 255, 0.7);
  font-size: 0.9em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #0ff;
  text-decoration: underline;
}

.user-profile {
  text-align: center;
  padding: 20px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ff, #00cccc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2em;
}

.user-info {
  margin: 20px 0;
}

.user-info p {
  margin: 10px 0;
  color: #0ff;
}

.user-info strong {
  color: #fff;
}

.logout-button {
  background: linear-gradient(135deg, #f00, #c00);
  margin-top: 20px;
}

.logout-button:hover {
  background: linear-gradient(135deg, #c00, #f00);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #0ff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    margin: 20px;
    padding: 25px;
  }
}