/* ===========================================
   AXiVRS ID - Authentication Pages Stylesheet
   =========================================== */

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill 0.2s ease;
}

.password-toggle:hover svg {
  fill: var(--border-focus);
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.strength-bar.active.weak { background: var(--error-color); }
.strength-bar.active.medium { background: #f59e0b; }
.strength-bar.active.strong { background: var(--success-color); }

.strength-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Terms */
.terms {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.terms a {
  color: var(--link-color);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

/* Description */
.description {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Success State (for reset password) */
.success-state { display: none; }
.success-state.active { display: block; }
.form-state.hidden { display: none; }

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--success-color);
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.success-message-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 28px;
}

.success-email {
  font-weight: 600;
  color: var(--text-primary);
}

.resend-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.resend-link a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.resend-link a:hover {
  text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-bottom: 24px;
}

.forgot-password a {
  font-size: 13px;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.loading {
  text-align: center;
  padding: 40px 0;
}

.loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--border-focus);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.loading p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

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