/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #101010;
  color: #F5F5F5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card layout */
.card {
  background-color: #151515;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Header & Typography */
.header {
  margin-bottom: 28px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #6F5BFE;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6F5BFE, #8A7C68);
  border-radius: 8px;
  display: inline-block;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  color: #F5F5F5;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #999999;
  line-height: 1.5;
}

/* Form controls */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #999999;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px 16px;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus {
  border-color: #6F5BFE;
  box-shadow: 0 0 0 3px rgba(111, 91, 254, 0.15);
}

/* Password strength hint or generic helper text */
.hint {
  font-size: 11px;
  color: #666666;
  margin-top: 4px;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 14px;
  background-color: #6F5BFE;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background-color: #5843F0;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  background-color: #333333;
  color: #666666;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.4;
  display: none; /* Hidden by default */
}

.alert-error {
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #FF3B30;
}

.alert-success {
  background-color: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.2);
  color: #34C759;
}

/* Screen modes (switching dynamically) */
.view-state {
  display: none;
}

.view-state.active {
  display: block;
}

.success-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(52, 199, 89, 0.12);
  color: #34C759;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.secondary-action {
  margin-top: 16px;
  display: block;
  font-size: 13px;
  color: #999999;
  text-decoration: none;
  transition: color 0.2s;
}

.secondary-action:hover {
  color: #6F5BFE;
}
