@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Apply modern typography globally to public layout */
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.portal.public {
  grid-template-columns: 1fr;
}

.portal.public .sidebar {
  display: none;
}

.portal.public .main {
  grid-column: 1;
  padding: 40px 18px;
}

/* Storefront Page Container */
.portal.public .container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar) - 80px);
  gap: 24px;
  padding: 40px 18px;
}

/* Page Header (Hero Card style override) */
.portal.public .card.hero {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 36px 20px 24px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.portal.public .card.hero::before {
  display: none !important;
}

.portal.public .card.hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.portal.public .card.hero p {
  font-size: 15px;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.5;
}

/* Customer login & registration cards */
.auth-wrap,
.portal.public .card:not(.hero) {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(15, 20, 35, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  padding: 32px 36px !important;
  transition: all 0.3s ease;
}

.auth-wrap:hover,
.portal.public .card:not(.hero):hover {
  border-color: rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.03) !important;
}

/* Storefront Forms Labels & Inputs */
.auth-wrap label,
.portal.public .card label {
  display: block;
  margin: 16px 0 6px !important;
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.auth-wrap .input,
.portal.public .card .input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-wrap .input:focus,
.portal.public .card .input:focus {
  border-color: #6366f1;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Checkbox specific label layout */
.auth-wrap label:has(input[type="checkbox"]),
.portal.public .card label:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.auth-wrap input[type="checkbox"],
.portal.public .card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}

/* Buttons */
.auth-wrap .btn,
.portal.public .btn,
.portal.public .card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  min-width: 120px;
}

.auth-wrap .btn.primary,
.portal.public .btn.primary,
.portal.public .card .btn.primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.auth-wrap .btn.primary:hover,
.portal.public .btn.primary:hover,
.portal.public .card .btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.auth-wrap .btn:not(.primary),
.portal.public .btn:not(.primary),
.portal.public .card .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  box-shadow: none;
}

.auth-wrap .btn:not(.primary):hover,
.portal.public .btn:not(.primary):hover,
.portal.public .card .btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Notification notice */
.notice {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border-color: rgba(239, 68, 68, 0.2) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  color: #f87171 !important;
}

/* Storefront plans grid */
.grid.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100%;
}

.plan-card .price {
  font-size: 34px;
  font-weight: 900;
  margin: 12px 0 8px;
  letter-spacing: .2px;
}

.plan-card ul {
  margin: 10px 0 0; 
  padding-left: 18px; 
  color: rgba(255, 255, 255, 0.8);
}

.plan-card li {
  margin: 6px 0;
}

@media (max-width: 1020px) {
  .grid.plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .grid.plans-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Utilities */
.muted {
  color: rgba(255, 255, 255, 0.55);
}

.linkbox {
  white-space: pre-wrap;
  word-break: break-all;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.90);
  font-size: 12px;
  line-height: 1.35;
}

/* Beautiful Single Unified Auth Card */
.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(18, 22, 33, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  padding: 40px 36px !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.auth-card:hover {
  border-color: rgba(255, 106, 0, 0.2) !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 106, 0, 0.03) !important;
}

.auth-card form {
  position: relative;
  z-index: 2;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.auth-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Form inputs & structure */
.form-group {
  margin-bottom: 18px;
}

.auth-card label {
  display: block;
  margin-bottom: 8px !important;
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.auth-card .input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0 16px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-card .input:focus {
  border-color: var(--accent, #ff6a00) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15) !important;
}

/* Checkbox alignment */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #ff6a00);
  margin: 0;
  cursor: pointer;
}

/* Button & Footer styles */
.auth-card .btn.primary {
  background: linear-gradient(135deg, var(--accent, #ff6a00) 0%, var(--accent2, #ff9a3d) 100%) !important;
  color: #121212 !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.3);
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.auth-card .btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

.auth-footer a {
  color: var(--accent, #ff6a00) !important;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.auth-footer a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
