/* Swiftly SaaS login — split card layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --sw-orange: #F28021;
  --sw-orange-dark: #E06B0A;
  --sw-orange-soft: #FFF3E8;
  --sw-orange-glow: rgba(242, 128, 33, 0.35);
  --sw-cream: #FFFCF7;
  --sw-cream-end: #FFE8CC;
  --sw-text: #1A1D26;
  --sw-text-muted: #6B7280;
  --sw-border: rgba(0, 0, 0, 0.08);
  --sw-radius-card: 32px;
  --sw-radius-pill: 999px;
}

body.swiftly-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Poppins', sans-serif !important;
  background: #E8EAED !important;
}

.swiftly-auth-canvas {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.swiftly-auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1080px;
  min-height: 640px;
  background: #fff;
  border-radius: var(--sw-radius-card);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

/* ─── Form panel ─── */
.swiftly-auth-card__form {
  padding: 48px 52px;
  background: linear-gradient(165deg, var(--sw-cream) 0%, #fff 45%, var(--sw-cream-end) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.swiftly-auth-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 36px;
}

.swiftly-auth-brand img {
  height: 40px;
  width: auto;
}

.swiftly-auth-card__form h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sw-text);
  margin: 0 0 10px;
}

.swiftly-auth-lead {
  color: var(--sw-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 28px;
}

.swiftly-auth-lead strong {
  color: var(--sw-orange);
  font-weight: 700;
}

.swiftly-auth-alert {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.swiftly-auth-alert--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.swiftly-auth-alert--success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.swiftly-auth-demo {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(242, 128, 33, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.swiftly-auth-demo__title {
  font-weight: 700;
  color: var(--sw-orange-dark);
  margin-bottom: 8px;
}

.swiftly-auth-demo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.swiftly-auth-demo__btn {
  border: none;
  background: var(--sw-orange-soft);
  color: var(--sw-orange-dark);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--sw-radius-pill);
  cursor: pointer;
  font-weight: 600;
}

.swiftly-auth-field {
  margin-bottom: 18px;
}

.swiftly-auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sw-text-muted);
  margin-bottom: 8px;
}

.swiftly-auth-field input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-pill);
  background: #fff;
  font-size: 0.95rem;
  color: var(--sw-text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.swiftly-auth-field input:focus {
  outline: none;
  border-color: var(--sw-orange);
  box-shadow: 0 0 0 4px var(--sw-orange-glow);
}

.swiftly-auth-password {
  position: relative;
}

.swiftly-auth-password input {
  padding-right: 48px;
}

.swiftly-auth-password__toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--sw-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.swiftly-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 24px;
  flex-wrap: wrap;
}

.swiftly-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--sw-text-muted);
  cursor: pointer;
  margin: 0;
}

.swiftly-auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--sw-orange);
}

.swiftly-auth-options a {
  font-size: 0.85rem;
  color: var(--sw-orange);
  font-weight: 600;
  text-decoration: none;
}

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

.swiftly-auth-submit {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: var(--sw-radius-pill);
  background: linear-gradient(135deg, var(--sw-orange) 0%, var(--sw-orange-dark) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px var(--sw-orange-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.swiftly-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px var(--sw-orange-glow);
}

.swiftly-auth-footer {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--sw-text-muted);
}

.swiftly-auth-footer a {
  color: var(--sw-orange);
  font-weight: 600;
  text-decoration: underline;
}

/* ─── Visual panel ─── */
.swiftly-auth-card__visual {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
  min-height: 100%;
}

.swiftly-auth-company-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  padding: 10px 18px;
  border-radius: var(--sw-radius-pill);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  max-width: calc(100% - 48px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swiftly-auth-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.swiftly-auth-widget {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  font-size: 0.78rem;
}

.swiftly-auth-widget--top {
  top: 72px;
  left: 24px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--sw-text);
  background: linear-gradient(135deg, var(--sw-orange) 0%, #FF9A3D 100%);
  color: #fff;
  border-radius: var(--sw-radius-pill);
}

.swiftly-auth-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: sw-login-pulse 2s ease-in-out infinite;
}

@keyframes sw-login-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.swiftly-auth-widget--avatars {
  top: 38%;
  right: 28px;
  display: flex;
  padding: 8px 12px;
  gap: -6px;
}

.swiftly-auth-widget--avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.swiftly-auth-widget--avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, var(--sw-orange), #FF9A3D); }
.swiftly-auth-widget--avatars span:nth-child(2) { background: linear-gradient(135deg, #64748b, #475569); }
.swiftly-auth-widget--avatars span:nth-child(3) { background: linear-gradient(135deg, #94a3b8, #64748b); }

.swiftly-auth-widget--calendar {
  bottom: 100px;
  right: 24px;
  padding: 14px 18px;
  min-width: 200px;
}

.swiftly-auth-calendar__days,
.swiftly-auth-calendar__nums {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.swiftly-auth-calendar__days {
  font-size: 0.65rem;
  color: var(--sw-text-muted);
  margin-bottom: 6px;
}

.swiftly-auth-calendar__nums span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 8px;
}

.swiftly-auth-calendar__nums .is-active,
.swiftly-auth-calendar__days .is-active {
  color: var(--sw-orange);
}

.swiftly-auth-calendar__nums .is-active {
  background: var(--sw-orange-soft);
}

.swiftly-auth-widget--meeting {
  bottom: 24px;
  left: 24px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.swiftly-auth-widget--meeting strong {
  font-size: 0.85rem;
  color: var(--sw-text);
}

.swiftly-auth-widget--meeting span {
  font-size: 0.75rem;
  color: var(--sw-text-muted);
}

.swiftly-auth-company-badge--platform {
  background: rgba(242, 128, 33, 0.92);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 800;
}

.swiftly-auth-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(242, 128, 33, 0.12);
  border: 1px solid rgba(242, 128, 33, 0.3);
  color: var(--sw-orange-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.swiftly-auth-widget--stat {
  top: 42%;
  right: 24px;
  padding: 14px 18px;
  text-align: center;
  min-width: 100px;
}

.swiftly-auth-widget--stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sw-text);
  line-height: 1;
  margin-bottom: 4px;
}

.swiftly-auth-widget--stat span {
  font-size: 0.72rem;
  color: var(--sw-text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .swiftly-auth-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: auto;
  }

  .swiftly-auth-card__visual {
    min-height: 280px;
    order: -1;
  }

  .swiftly-auth-card__form {
    padding: 36px 28px 40px;
  }

  .swiftly-auth-widget--calendar,
  .swiftly-auth-widget--avatars,
  .swiftly-auth-widget--stat {
    display: none;
  }
}

@media (max-width: 480px) {
  .swiftly-auth-canvas {
    padding: 12px;
  }

  .swiftly-auth-card {
    border-radius: 24px;
  }

  .swiftly-auth-card__form h1 {
    font-size: 1.6rem;
  }
}
