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

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body.dg-auth-body {
  min-height: 100vh;
  width: 100%;
  background: #071a35 url('https://designgama.in/wp-content/uploads/2026/09/4e0b9272-78c7-4123-a85a-6d3167240413.png') center / cover fixed no-repeat;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0c1021;
}

.login-shell {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60% 40%;
  overflow: hidden;
  background: #fff;
}

.visual-panel {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  padding: 58px 7.5%;
  color: #fff;
  background-color: #071a35;
  background-image:
    linear-gradient(90deg, rgba(5, 12, 28, .94) 0%, rgba(5, 12, 28, .82) 48%, rgba(5, 12, 28, 0) 72%),
    url('https://designgama.in/wp-content/uploads/2026/09/4e0b9272-78c7-4123-a85a-6d3167240413.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.visual-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  bottom: -240px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    0 0 0 70px rgba(255,255,255,.018),
    0 0 0 140px rgba(255,255,255,.012);
  pointer-events: none;
}

.sidebar-back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 58px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(109, 92, 255, .58), rgba(89, 108, 255, .18));
  color: #eef1ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.sidebar-back-link .back-icon {
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(5px);
  transition: width .2s ease, opacity .2s ease, transform .2s ease;
}

.sidebar-back-link:hover, .sidebar-back-link:focus-visible, .sidebar-back-link:active {
  background: linear-gradient(120deg, rgba(130, 104, 255, .76), rgba(89, 108, 255, .34));
  color: #fff;
  transform: translateX(-2px);
}

.sidebar-back-link:hover .back-icon, .sidebar-back-link:focus-visible .back-icon, .sidebar-back-link:active .back-icon {
  width: 16px;
  opacity: 1;
  transform: translateX(0);
}

.marketing {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.marketing-brand, .brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
}

.marketing-brand {
  width: max-content;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -2px;
}

.marketing-brand .black { color: #fff; }
.marketing-brand .gradient, .brand .gradient {
  background: linear-gradient(100deg, #6d5cff, #8268ff, #596cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marketing-subtitle {
  margin-top: 9px;
  color: #9ba4b8;
  font-size: 12px;
  letter-spacing: 1.7px;
}

.eyebrow {
  margin-top: clamp(48px, 8vh, 82px);
  color: #7867ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
}

.marketing h2 {
  max-width: 600px;
  margin: 14px 0 12px;
  font-size: clamp(48px, 4.3vw, 72px);
  line-height: 1.02;
  letter-spacing: -3.5px;
  font-weight: 800;
}

.marketing h2 .accent {
  display: block;
  background: linear-gradient(95deg, #6c58ff, #8b68ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marketing-copy {
  max-width: 510px;
  margin: 0;
  color: #b3bac9;
  font-size: 16px;
  line-height: 1.45;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 36px;
  max-width: 540px;
}

.service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b68ff;
  flex-shrink: 0;
}

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

.service-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.service-desc {
  display: block;
  font-size: 12px;
  color: #8c96ac;
}

.marketing-footer {
  margin-top: auto;
  padding-top: 45px;
  color: #788195;
  font-size: 12px;
}

.marketing-footer strong {
  color: #9da6ba;
  font-weight: 500;
}

.form-panel {
  position: relative;
  min-width: 0;
  height: 100vh;
  padding: 35px 53px 36px;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 60px;
  color: #59627b;
  font-size: 13px;
  flex-shrink: 0;
}

.topbar-brand {
  max-width: 140px;
  max-height: 48px;
  margin-right: auto;
  object-fit: contain;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 20px;
  border: 1px solid #bcb5ff;
  border-radius: 20px;
  color: #6252f6;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.topbar-link:hover, .topbar-link:focus-visible {
  background: #f7f5ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(98, 82, 246, .12);
}

.auth-content {
  width: 100%;
  max-width: 460px;
  margin: auto auto;
  text-align: center;
}

.auth-content h1 {
  margin: 20px 0 8px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  font-weight: 700;
  color: #0c1021;
}

.intro {
  margin: 0 0 22px;
  color: #69738c;
  font-size: 14px;
  line-height: 1.5;
}

form.dg-form {
  text-align: left;
}

/* Alert Notices */
.dg-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 20px;
  text-align: left;
}
.dg-alert-error {
  background: #fff0f0;
  border: 1px solid #fed7d7;
  color: #c53030;
}
.dg-alert-success {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #276749;
}
.dg-alert-info {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  color: #2b6cb0;
}

/* Field styling */
.field {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #d4dbe8;
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field:focus-within {
  border-color: #6252f6;
  box-shadow: 0 0 0 3px rgba(98, 82, 246, .09);
}

.field-icon, .field .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #59637a;
}

.field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding-top: 10px;
  background: transparent;
  color: #151a28;
  font: 400 14px Outfit, sans-serif;
}

.field input::placeholder {
  color: transparent;
}

.field-wrap {
  position: relative;
  min-width: 0;
}

.field-wrap > span, .field > span {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 42px;
  margin: 0;
  color: #59637a;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  transition: top .18s ease, color .18s ease, font-size .18s ease;
}

.field-wrap.is-focused > span,
.field-wrap.has-value > span,
.field:focus-within > span,
.field.has-value > span,
.field input:not(:placeholder-shown) ~ span {
  top: 7px;
  color: #6252f6;
  font-size: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
}

.field-grid .field {
  gap: 10px;
}

.password-toggle {
  background: none;
  border: none;
  padding: 4px;
  color: #59637a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover {
  color: #6252f6;
}

/* Options */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 20px;
  font-size: 13px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #59627b;
  cursor: pointer;
}

.remember input, .terms input {
  accent-color: #6252f6;
}

.forgot {
  color: #6252f6;
  text-decoration: none;
  font-weight: 500;
}
.forgot:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn, .login-btn, .reset-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(105deg, #5b4df5, #6550f8 48%, #6752f4);
  color: #fff;
  font: 600 15px Outfit, sans-serif;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(99, 80, 245, .13);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.submit-btn:hover, .submit-btn:focus-visible,
.login-btn:hover, .login-btn:focus-visible,
.reset-btn:hover, .reset-btn:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(99, 80, 245, .22);
}

.submit-btn:active, .login-btn:active, .reset-btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 4px 10px rgba(99, 80, 245, .16);
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 18px;
  color: #626c84;
  font-size: 13px;
  line-height: 1.4;
}

.terms a, .back-link {
  color: #6252f6;
  text-decoration: none;
}

.terms a:hover, .back-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
}

.social-divider, .divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  color: #69738c;
  font-size: 12px;
}

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

.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 10px;
}

.social {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  background: #fff;
  color: #151a28;
  font: 600 13px 'Outfit', -apple-system, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social span {
  color: #101522;
  font-weight: 600;
  font-size: 13px;
}

.social:hover, .social:focus-visible {
  border-color: #6366f1;
  background: #fbfbfe;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, .12);
  color: #101522;
  text-decoration: none;
}

.social:active {
  transform: translateY(1px) scale(.98);
}

/* Multi-step progress */
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 32px;
}

.progress-step {
  position: relative;
  width: 32px;
  height: 32px;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  aspect-ratio: 1;
  background: #edf0f6;
  color: #59637a;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.progress-step::before {
  content: attr(data-label);
  position: absolute;
  top: 40px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  color: #69738c;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.progress-step.active {
  background: #6252f6;
  color: #fff;
}

.progress-step.active::before {
  color: #6252f6;
  font-weight: 600;
}

.progress-step::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 100%;
  width: calc(100% + 8px);
  height: 2px;
  background: #e4e7ef;
}

.progress-step.active::after {
  background: #bcb5ff;
}

.progress-step:last-child::after {
  display: none;
}

.step { display: none; }
.step.active { display: block; }

.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.step-actions button {
  flex: 1;
}

.back-step {
  border: 1px solid #d4dbe8;
  border-radius: 17px;
  background: #fff;
  color: #59637a;
  font: 600 15px Outfit, sans-serif;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.back-step:hover, .back-step:focus-visible {
  color: #6252f6;
  border-color: #bcb5ff;
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(39, 48, 78, .08);
}

.back-step:active {
  transform: translateY(1px) scale(.98);
}

.card-heading {
  margin: 0 0 5px;
  color: #151a28;
  font-size: 17px;
  font-weight: 700;
}

.card-copy {
  margin: 0 0 19px;
  color: #69738c;
  font-size: 12px;
}

.password-notes {
  display: block;
  margin: 6px 0 16px;
}

.password-note {
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f8faff;
  color: #69738c;
  font-size: 11px;
  line-height: 1.45;
}

.password-note strong {
  display: block;
  margin-bottom: 4px;
  color: #6252f6;
  font-size: 12px;
}

.check-list span {
  display: block;
  color: #69738c;
  margin-bottom: 2px;
}

.check-list span::before {
  content: "○";
  display: inline-grid;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  place-items: center;
  color: #9aa4b8;
  font-weight: 700;
}

.check-list span.valid {
  color: #3c8060;
}

.check-list span.valid::before {
  content: "✓";
  border-radius: 3px;
  background: #20b968;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) and (min-width: 651px) {
  body.dg-auth-body { background: #fff; }
  .login-shell { height: 100vh; min-height: 700px; grid-template-columns: 52% 48%; }
  .visual-panel { min-height: 100%; padding: 32px 6%; }
  .form-panel { min-height: 100%; padding-left: 24px; padding-right: 24px; }
  .auth-content { margin: auto auto; }
  .field-grid { gap: 4px 10px; }
  .field-grid .field { padding-left: 9px; padding-right: 9px; }
  .field-wrap > span { left: 36px; }
}

@media (max-width: 650px) {
  body.dg-auth-body { min-height: 0; padding: 16px; background: #071a35; }
  .login-shell { width: 100%; min-height: calc(100vh - 32px); display: block; border-radius: 18px; box-shadow: 0 0 28px rgba(0,0,0,.42); }
  .visual-panel { display: none; }
  .form-panel { min-height: calc(100vh - 32px); padding: 25px 18px; }
  .auth-content { margin: auto auto; }
  .brand { font-size: 34px; }
  .field-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Social Login Buttons & Divider
   ========================================================================== */
.dg-social-buttons-wrapper {
  width: 100%;
  margin-top: 22px;
  margin-bottom: 24px;
}
.dg-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dg-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
}
.dg-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dg-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.dg-social-icon svg {
  display: block;
}

/* Google */
.dg-social-btn-google {
  background: #ffffff;
  color: #3c4043;
  border-color: #dadce0;
}
.dg-social-btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Apple */
.dg-social-btn-apple {
  background: #000000;
  color: #ffffff;
}
.dg-social-btn-apple:hover {
  background: #1a1a1a;
}

/* Microsoft */
.dg-social-btn-microsoft {
  background: #2f2f2f;
  color: #ffffff;
}
.dg-social-btn-microsoft:hover {
  background: #1f1f1f;
}

/* GitHub */
.dg-social-btn-github {
  background: #24292e;
  color: #ffffff;
}
.dg-social-btn-github:hover {
  background: #1b1f23;
}

/* LinkedIn */
.dg-social-btn-linkedin {
  background: #0a66c2;
  color: #ffffff;
}
.dg-social-btn-linkedin:hover {
  background: #095196;
}

/* Facebook */
.dg-social-btn-facebook {
  background: #1877f2;
  color: #ffffff;
}
.dg-social-btn-facebook:hover {
  background: #1464cc;
}

/* Divider */
.dg-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.dg-auth-divider::before,
.dg-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.dg-auth-divider span {
  padding: 0 14px;
}

/* Password Reset Checklist & Indicators */
.pwd-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.pwd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  transition: color 0.15s ease;
}
.pwd-item .pwd-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.pwd-item.is-valid {
  color: #15803d;
  font-weight: 500;
}
.pwd-item.is-valid .pwd-check {
  background: #22c55e;
  color: #ffffff;
}
.match-indicator {
  display: block;
  font-size: 12px;
  font-weight: 500;
  min-height: 18px;
  margin: 4px 0 12px 4px;
  text-align: left;
}
.match-indicator.match-success {
  color: #15803d;
}
.match-indicator.match-error {
  color: #dc2626;
}

/* Already Logged In Prompt */
.dg-logged-in-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  margin: 20px 0 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.dg-logged-in-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #6350f5;
  box-shadow: 0 4px 12px rgba(99, 80, 245, 0.2);
  display: block;
}
.dg-logged-in-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.dg-logged-in-email {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px 0;
}
.dg-role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.dg-role-admin {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}
.dg-role-client {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.dg-logged-in-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.dg-logout-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
  font: 500 13px Outfit, sans-serif;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dg-logout-link-btn:hover {
  background: #f1f5f9;
  color: #dc2626;
  border-color: #fecaca;
}

