/* Base Reset & Variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;
  
  --foreground: #0f172a;
  --muted-foreground: #64748b;
  --secondary: #f1f5f9;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(to bottom, var(--brand-50), #ffffff, var(--brand-50));
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

/* Page Layout Container */
.container {
  min-height: 100vh;
  padding: 40px 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 64px 16px;
  }
}

.wrapper {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 640px;
}

/* Preview Header */
.preview-header {
  text-align: center;
  margin-bottom: 32px;
}

.badge {
  display: inline-block;
  background-color: var(--brand-100);
  color: var(--brand-700);
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.main-title {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .main-title {
    font-size: 1.875rem;
  }
}

.main-subtitle {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Email Template Card */
.email-card {
  background-color: #ffffff;
  border: 1px solid var(--brand-100);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(234, 88, 12, 0.35);
}

/* Header Section */
.email-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--brand-600), var(--brand-500), var(--brand-400));
  padding: 40px 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .email-header {
    padding: 40px 48px;
  }
}

/* Header Abstract Background Circles */
.circle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.circle-top {
  right: -40px;
  top: -64px;
  width: 192px;
  height: 192px;
}

.circle-bottom {
  left: -32px;
  bottom: -48px;
  width: 128px;
  height: 128px;
}

.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-wrapper {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.icon {
  color: #ffffff;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

/* Body Section */
.email-body {
  padding: 40px 32px;
}

@media (min-width: 640px) {
  .email-body {
    padding: 48px 48px;
  }
}

.greeting {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-600);
}

.body-title {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .body-title {
    font-size: 1.75rem;
  }
}

.body-text {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.highlight {
  font-weight: 600;
  color: var(--foreground);
}

/* OTP Grid Layout */
.otp-container {
  margin-top: 32px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.otp-box-wrapper {
  display: flex;
  gap: 8px;
}

@media (min-width: 640px) {
  .otp-box-wrapper {
    gap: 12px;
  }
}

.otp-box {
  display: flex;
  height: 48px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--brand-200);
  background-color: var(--brand-50);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-700);
}

@media (min-width: 640px) {
  .otp-box {
    height: 56px;
    width: 44px;
    font-size: 1.5rem;
  }
}

/* Verify CTA Button */
.btn-container {
  display: flex;
  justify-content: center;
}

.verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--brand-500);
  padding: 12px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
  transition: background-color 0.2s ease;
}

.verify-btn:hover {
  background-color: var(--brand-600);
}

/* Warning Info Box */
.alert-box {
  margin-top: 32px;
  border-radius: 12px;
  background-color: var(--secondary);
  padding: 12px 16px;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Footer Section */
.email-footer {
  border-top: 1px solid var(--brand-100);
  background-color: var(--brand-50);
  padding: 32px 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .email-footer {
    padding: 32px 48px;
  }
}

.footer-logo {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--brand-500);
}

.company-name {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.contact-info {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-icon {
  color: var(--muted-foreground);
}

.footer-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--brand-600);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

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

.bullet {
  color: var(--brand-200);
}

.copyright {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted-foreground);
}
