:root {
  --background: #ffffff;
  --foreground: #475569;
  --card: #ecfeff;
  --card-foreground: #164e63;
  --popover: #ffffff;
  --popover-foreground: #475569;
  --primary: #164e63;
  --primary-foreground: #ffffff;
  --secondary: #0891b2;
  --secondary-foreground: #ffffff;
  --muted: #f9fafb;
  --muted-foreground: #374151;
  --accent: #0891b2;
  --accent-foreground: #ffffff;
  --destructive: #d97706;
  --destructive-foreground: #ffffff;
  --border: #ecfeff;
  --input: #ffffff;
  --ring: #164e63;
  --chart-1: #a45a06;
  --chart-2: #164e63;
  --chart-3: #0891b2;
  --chart-4: #475569;
  --chart-5: #ecfeff;
  --radius: 0.5rem;
  --sidebar: #ecfeff;
  --sidebar-foreground: #475569;
  --sidebar-primary: #164e63;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #0891b2;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #ecfeff;
  --sidebar-ring: #164e63;
}

.dark {
  --background: #0f172a;
  --foreground: #e2e8f0;
  --card: #1e293b;
  --card-foreground: #e2e8f0;
  --popover: #1e293b;
  --popover-foreground: #e2e8f0;
  --primary: #0891b2;
  --primary-foreground: #ffffff;
  --secondary: #334155;
  --secondary-foreground: #e2e8f0;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #0891b2;
  --accent-foreground: #ffffff;
  --destructive: #ea580c;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #1e293b;
  --ring: #0891b2;
  --chart-1: #ea580c;
  --chart-2: #0891b2;
  --chart-3: #164e63;
  --chart-4: #94a3b8;
  --chart-5: #334155;
  --sidebar: #1e293b;
  --sidebar-foreground: #e2e8f0;
  --sidebar-primary: #0891b2;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #334155;
  --sidebar-accent-foreground: #e2e8f0;
  --sidebar-border: #334155;
  --sidebar-ring: #0891b2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  background: linear-gradient(135deg, var(--card) 0%, var(--background) 100%);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-image: url("/images/bg-3.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.container {
  width: 100%;
  max-width: 550px;
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem;
  text-align: center;
}

.header h1 {
  font-family: "Geist Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.form-container {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--input);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(22, 78, 99, 0.1);
}

.form-group input.error {
  border-color: var(--destructive);
}

.btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none !important;
}

.btn-primary:hover {
  background: #0f3a47;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background: #0e7490;
  transform: translateY(-1px);
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  width: auto;
  margin: 0;
}

.link-btn:hover {
  color: #0e7490;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* MessageBox Styles */
.messagebox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.messagebox-overlay.show {
  opacity: 1;
  visibility: visible;
}

.messagebox {
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.messagebox-overlay.show .messagebox {
  transform: scale(1);
}

.messagebox-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.messagebox-icon.error {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.messagebox-icon.success {
  background: #10b981;
  color: white;
}

.messagebox h3 {
  font-family: "Geist Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.messagebox p {
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.messagebox .btn {
  width: auto;
  min-width: 100px;
  margin: 0;
}

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

.email-info {
  text-align: center;
}

.info-box {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.info-box h3 {
  font-family: "Geist Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.steps {
  margin: 1.5rem 0;
}

.step {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.step-number {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  font-size: 0.875rem;
}

.note {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  color: #92400e;
  font-size: 0.875rem;
}

.dark .note {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
  text-decoration: none !important;
}

.btn-outline:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

/* Email Verified Page Styles */
.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-info {
  text-align: center;
}

.success-box {
  background: var(--card);
  border: 2px solid #10b981;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.success-box h3 {
  font-family: "Geist Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #10b981;
}

.features {
  margin: 1.5rem 0;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.feature-icon {
  font-size: 1.25rem;
  margin-right: 1rem;
  width: 30px;
  text-align: center;
}

.welcome-note {
  background: #dcfce7;
  border: 1px solid #10b981;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  color: #166534;
  font-size: 0.875rem;
}

.dark .welcome-note {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

@media (max-width: 480px) {
  .container {
    margin: 0.5rem;
  }

  .header {
    padding: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .info-box,
  .success-box {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .step,
  .feature {
    padding: 0.5rem;
  }

  .step-number,
  .feature-icon {
    margin-right: 0.75rem;
  }
}


.bg-warning {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
}
.text-dark {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
}
.ms-2 {
    margin-left: .5rem !important;
}
.align-baseline {
    vertical-align: baseline !important;
}

.badge {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-warning-rgb: 255, 193, 7;
    --bs-dark-rgb: 33, 37, 41;
    --bs-border-radius: 0.375rem;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}