:root {
  --mc-bg: #07111f;
  --mc-bg-soft: #0f1f35;
  --mc-card: rgba(255, 255, 255, 0.96);
  --mc-primary: #2563eb;
  --mc-primary-dark: #1d4ed8;
  --mc-text: #182033;
  --mc-muted: #6b7280;
  --mc-border: #d8dee9;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #f4f6fb;
  color: var(--mc-text);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), transparent 32%),
    linear-gradient(135deg, var(--mc-bg), var(--mc-bg-soft));
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 36px;
  border-radius: 24px;
  background: var(--mc-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
  font-size: 30px;
  font-weight: 750;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--mc-muted);
  margin-bottom: 28px;
}

.form-label {
  font-weight: 600;
  color: #2f3a4f;
}

.form-control {
  min-height: 46px;
  border-radius: 12px;
  border-color: var(--mc-border);
}

.form-control:focus {
  border-color: var(--mc-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}

.btn-primary {
  min-height: 46px;
  border-radius: 12px;
  background: var(--mc-primary);
  border-color: var(--mc-primary);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--mc-primary-dark);
  border-color: var(--mc-primary-dark);
}

.login-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--mc-border);
  color: var(--mc-muted);
  font-size: 13px;
  text-align: center;
}

.brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.brand-logo img{
    width:320px;
    max-width:90%;
    height:auto;
}

.login-tagline {
  color: #4b5563;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 28px;
}

.login-subtitle {
  color: var(--mc-muted);
  margin-bottom: 28px;
}

.brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.brand-logo img {
  width: 320px;
  max-width: 90%;
  height: auto;
}

.portal-page {
  min-height: 100vh;
  padding: 48px 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 30%),
    linear-gradient(135deg, #eef3fb, #f8fafc);
}

.portal-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.portal-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.portal-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #172033;
}

.portal-header p {
  color: #667085;
  font-size: 18px;
  margin: 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.profile-summary > div {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.summary-label {
  display: block;
  color: #667085;
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-summary strong {
  font-size: 18px;
  color: #172033;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portal-card {
  min-height: 260px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  text-decoration: none;
  color: #172033;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: #b8c7e8;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  color: #172033;
}

.portal-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 22px;
}

.portal-card h2 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 12px;
}

.portal-card p {
  color: #667085;
  margin-bottom: 24px;
  line-height: 1.5;
}

.portal-card span {
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 900px) {
  .portal-header {
    flex-direction: column;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.app-topbar {
  min-height: 72px;
  margin-bottom: 32px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #172033;
  font-weight: 800;
}

.topbar-brand img {
  width: 130px;
  height: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #667085;
  font-weight: 600;
}

.page-title {
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 36px;
  font-weight: 800;
  color: #172033;
  margin-bottom: 8px;
}

.page-title p {
  color: #667085;
  font-size: 17px;
  margin: 0;
}

.form-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.form-select {
  min-height: 46px;
  border-radius: 12px;
  border-color: var(--mc-border);
}

.form-actions {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 700px) {
  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}

.form-actions {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-actions .btn {
    min-width: 170px;
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;
}

.signature-workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.signature-panel,
.signature-preview-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.signature-panel h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #172033;
}

.signature-panel p {
  color: #667085;
  margin-bottom: 22px;
}

.data-list {
  display: grid;
  gap: 14px;
}

.data-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.data-list span {
  display: block;
  color: #667085;
  font-size: 13px;
  margin-bottom: 3px;
}

.data-list strong {
  color: #172033;
  font-size: 15px;
}

.gmail-help {
  margin-top: 20px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.preview-label {
  font-weight: 800;
  color: #172033;
  margin-bottom: 18px;
}

.signature-preview {
  min-height: 260px;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #ffffff;
  overflow-x: auto;
}

@media (max-width: 950px) {
  .signature-workspace {
    grid-template-columns: 1fr;
  }
}

.card-page {
  min-height: 100vh;
  padding: 28px 16px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 30%),
    linear-gradient(135deg, #eef3fb, #f8fafc);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-preview-topbar {
  width: 100%;
  max-width: 430px;
  margin-bottom: 16px;
}

.contact-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.contact-card-header {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.contact-logo {
  width: 220px;
  max-width: 82%;
  height: auto;
  margin-bottom: 22px;
}

.contact-card-header h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #172033;
  margin: 0 0 6px;
}

.contact-card-header p {
  color: #667085;
  font-size: 17px;
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.contact-list a,
.contact-list div {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #172033;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.contact-list i {
  color: #2563eb;
  font-size: 18px;
  line-height: 1.35;
  margin-top: 1px;
}

.contact-qr {
  width: 190px;
  height: 190px;
  margin: 22px auto;
  padding: 12px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.contact-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-main-button {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
}

.public-url {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
  word-break: break-all;
  text-align: center;
}

@media (max-width: 420px) {
  .contact-card {
    padding: 22px;
    border-radius: 24px;
  }

  .contact-logo {
    width: 190px;
  }

  .contact-card-header h1 {
    font-size: 24px;
  }
}
