/* ================================================================
   Web Ultimax Email Automation — Light Mint SaaS Auth UI
   Matching Exact Design Specification from Screenshot
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --auth-emerald: #006838;
  --auth-emerald-hover: #00522c;
  --auth-emerald-dark: #064e3b;
  --auth-mint-bg: #f2fbf5;
  --auth-mint-card: #e6f4ea;
  --auth-border: #e2e8f0;
  --auth-text-dark: #0f172a;
  --auth-text-muted: #64748b;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  background-color: #f2fbf5;
  color: var(--auth-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #ffffff;
  overflow: hidden;
}

@media (min-width: 1200px) {
  body.auth-body {
    padding: 24px;
    background: #eef7f2;
  }
  .auth-shell {
    width: min(1280px, 96vw);
    min-height: 780px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 50, 25, 0.06), 0 4px 15px rgba(0,0,0,0.02);
  }
}

/* ── Left Hero Panel (Mint Light Background) ────────────────── */
.auth-hero {
  background: #f2fbf5;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #e5f2e9;
}

.auth-hero-top {
  position: relative;
  z-index: 2;
}

/* Brand Header */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.auth-logo-icon {
  width: 46px;
  height: 46px;
  background: var(--auth-emerald);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0, 104, 56, 0.2);
}

.auth-brand-info h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--auth-emerald-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-version-badge {
  display: inline-block;
  background: #dcfce7;
  color: var(--auth-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-top: 4px;
  border: 1px solid #bbf7d0;
}

/* Hero Titles */
.auth-hero h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: var(--auth-emerald-dark);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  max-width: 480px;
}

.auth-hero p.hero-subtitle {
  color: var(--auth-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 460px;
}

/* Feature List */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--auth-mint-card);
  color: var(--auth-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-text h6 {
  margin: 0 0 2px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--auth-emerald-dark);
}

.feature-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--auth-text-muted);
  line-height: 1.4;
}

/* Bottom Graphic Illustration */
.auth-hero-graphic {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 10px;
}

.dashboard-mockup-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 12px 30px rgba(0, 50, 25, 0.08);
  border: 1px solid #e2e8f0;
}

.mockup-top-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mockup-top-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-top-dots span:first-child { background: #ef4444; }
.mockup-top-dots span:nth-child(2) { background: #f59e0b; }
.mockup-top-dots span:nth-child(3) { background: #10b981; }

.mockup-body {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.mockup-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 60px;
}

.mockup-bar {
  width: 12px;
  background: #dcfce7;
  border-radius: 4px;
}

.mockup-bar.active {
  background: var(--auth-emerald);
}

.mockup-chart-card {
  flex: 1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #f1f5f9;
}

.mockup-chart-line {
  height: 40px;
  width: 100%;
}

.floating-envelope-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 68px;
  height: 52px;
  background: #10b981;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  transform: rotate(-6deg);
}

.floating-plane-icon {
  position: absolute;
  right: 10px;
  top: -30px;
  color: #10b981;
  font-size: 28px;
  transform: rotate(15deg);
}

/* ── Right Login Panel ───────────────────────────────────────── */
.auth-panel {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.auth-panel-center {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.auth-header-text {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--auth-emerald-dark);
  margin: 0 0 8px 0;
  letter-spacing: -0.03em;
}

.auth-header-text p {
  color: var(--auth-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Alert Boxes */
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert.danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Form Controls */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--auth-emerald-dark);
  margin-bottom: 8px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-input-control {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 46px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  color: var(--auth-text-dark);
  font-family: inherit;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-control:focus {
  border-color: var(--auth-emerald);
  box-shadow: 0 0 0 3px rgba(0, 104, 56, 0.12);
}

.auth-input-control:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--auth-emerald);
}

.auth-toggle-pwd {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-pwd:hover {
  color: var(--auth-emerald);
}

/* Remember me & Forgot Password */
.auth-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--auth-text-dark);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-emerald);
  cursor: pointer;
}

.auth-forgot-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--auth-emerald);
  text-decoration: none;
}

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

/* Submit Button */
.btn-auth-submit {
  width: 100%;
  height: 52px;
  background: var(--auth-emerald);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 104, 56, 0.2);
}

.btn-auth-submit:hover {
  background: var(--auth-emerald-hover);
  transform: translateY(-1px);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 16px;
}

/* Social Google Button */
.btn-google-auth {
  width: 100%;
  height: 50px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.google-icon-svg {
  width: 20px;
  height: 20px;
}

/* Footer Signup Switch */
.auth-signup-text {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--auth-text-muted);
}

.auth-signup-text a {
  color: var(--auth-emerald);
  font-weight: 700;
  text-decoration: none;
}

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

/* Footer Credits & Copyright */
.auth-footer-credits {
  text-align: center;
  margin-top: 36px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

.auth-footer-credits a {
  color: var(--auth-emerald);
  font-weight: 700;
  text-decoration: none;
}

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

/* Responsive Layout */
@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .auth-panel {
    padding: 40px 24px;
  }
}

  .auth-footer {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
