/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.0_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.0_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/(auth)/auth.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* =============================================================================
   AUTH PAGES — Critical CSS
   Loaded as a static CSS file (imported in (auth)/layout.tsx) so styles are
   available on first paint, before any JavaScript executes. This eliminates
   the Flash of Unstyled Content (FOUC) on hard refresh.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
}

.auth-header p {
  color: #94a3b8;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Form
   --------------------------------------------------------------------------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.5);
  color: #f1f5f9;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder {
  color: #64748b;
}

.form-group input:disabled,
.form-group select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-group input.readonly-field {
  background: rgba(30, 41, 59, 0.3);
  color: #94a3b8;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.2);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #1e293b;
  color: #f1f5f9;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Welcome page overrides form-actions to a two-button row */
.welcome-form .form-actions {
  justify-content: flex-start;
  gap: 1rem;
}

/* ---------------------------------------------------------------------------
   Alert / Feedback Banners
   --------------------------------------------------------------------------- */
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.success-message {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.success-message strong {
  color: #f1f5f9;
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 500;
}

.error-banner {
  padding: 0.875rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.auth-button {
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.auth-button:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-button-link {
  display: block;
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-button-link:hover {
  opacity: 0.9;
}

.login-link {
  display: block;
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-link:hover {
  opacity: 0.9;
}

.resend-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.resend-button:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.resend-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Links / Footer
   --------------------------------------------------------------------------- */
.forgot-link {
  font-size: 0.875rem;
  color: #60a5fa;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-footer p {
  color: #94a3b8;
  margin: 0;
}

.auth-footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-links {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-links a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Helper text
   --------------------------------------------------------------------------- */
.hint {
  font-size: 0.75rem;
  color: #64748b;
}

.form-hint {
  color: #64748b;
  font-size: 0.8125rem;
}

.subtitle {
  color: #94a3b8;
  margin: 0;
  font-size: 1rem;
}

/* ---------------------------------------------------------------------------
   Register — Invite-Only Info
   --------------------------------------------------------------------------- */
.icon-wrapper {
  margin-bottom: 1.5rem;
}

.lock-icon {
  width: 64px;
  height: 64px;
  color: #60a5fa;
  margin: 0 auto;
  display: block;
}

.info-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-box p {
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.steps h3 {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.steps ol {
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0;
  padding-left: 1.5rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.warning {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
}

.warning strong {
  color: #fca5a5;
  display: block;
  margin-bottom: 0.5rem;
}

.warning p {
  color: #fca5a5;
  margin: 0;
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------------------
   Register — Profile Image Upload
   --------------------------------------------------------------------------- */
.profile-image-upload {
  position: relative;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-placeholder:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 0.875rem;
  color: #e2e8f0;
  font-weight: 500;
}

.upload-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.file-input-hidden {
  display: none;
}

.image-preview-container {
  position: relative;
  display: inline-block;
}

.image-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.5);
}

.remove-image-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-image-btn:hover {
  background: #dc2626;
}

/* ---------------------------------------------------------------------------
   Registration Success
   --------------------------------------------------------------------------- */
.success-icon-large {
  display: inline-flex;
  color: #22c55e;
  margin-bottom: 1rem;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.email-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.5rem;
  color: #60a5fa;
  font-family: monospace;
  font-size: 0.875rem;
}

.instructions {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.instructions h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 1rem;
}

.instructions ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.instructions li {
  margin-bottom: 0.5rem;
}

.tip {
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.5rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.tip strong {
  display: block;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.tip p {
  margin: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------------
   Verify Email — Spinner & Status Icons
   --------------------------------------------------------------------------- */
.spinner {
  border: 3px solid rgba(148, 163, 184, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: auth-spin 1s linear infinite;
  margin: 0 auto;
}

.success-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #10b981;
  color: white;
  font-size: 32px;
}

.error-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #ef4444;
  color: white;
  font-size: 32px;
}

/* Spinning utility used on icons (e.g. RefreshCw in registration-success) */
.spinning {
  animation: auth-spin 1s linear infinite;
}

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

/* ---------------------------------------------------------------------------
   Welcome / Setup Flow
   --------------------------------------------------------------------------- */
.welcome-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.welcome-card {
  width: 100%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.welcome-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.welcome-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
}

.welcome-header p {
  color: #94a3b8;
  margin: 0;
  font-size: 1rem;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: 2px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 600;
  transition: all 0.3s;
}

.step.active .step-number {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.step.active .step-label {
  color: #e2e8f0;
}

.step-divider {
  width: 60px;
  height: 2px;
  background: rgba(148, 163, 184, 0.2);
  margin: 0 1rem;
}

.welcome-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  margin-bottom: 0.5rem;
}

.form-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
}

.section-description {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.welcome-button,
.welcome-button-secondary {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.welcome-button {
  flex: 1 1;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.welcome-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.welcome-button-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.welcome-button-secondary:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.15);
}

.welcome-button:disabled,
.welcome-button-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .auth-card {
    padding: 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .success-icon-large {
    transform: scale(0.8);
  }

  .welcome-card {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    transform: scale(0.9);
  }
}

