/* Client portal preview — Klearer Services Pty Ltd */

.portal-preview-banner {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.96));
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  color: #0B1120;
  padding: 10px 18px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.portal-preview-banner i {
  color: #00AEEF;
  margin-right: 8px;
}

.portal-login-section {
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #00AEEF 0%, #08a6dc 42%, #0474a6 100%);
  background-size: 26px 26px, auto;
}

.portal-login-container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 58px 18px 66px;
}

.portal-login-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  align-items: stretch;
  width: min(940px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 10px;
  color: #0B1120;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(11, 17, 32, 0.18);
}

.portal-login-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  margin: 0;
  min-height: 100%;
  padding: 34px 30px;
  text-align: left;
  background: linear-gradient(160deg, #e0f7fa 0%, #ffffff 100%);
  border: 1px solid #b6e6f2;
  border-radius: 20px;
}

.portal-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #e0f7fa;
  border: 1px solid #b6e6f2;
  color: #0284c7;
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-login-logo {
  display: block;
  width: min(190px, 70vw);
  height: auto;
  margin: 0 0 24px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.16));
}

.portal-login-intro h2 {
  margin: 0 0 12px;
  color: #0B1120;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.portal-login-intro p {
  margin: 0 auto;
  color: #475569;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  font-weight: 650;
  line-height: 1.65;
}

.portal-login-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.portal-login-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.portal-login-points i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #ffffff;
  color: #00AEEF;
  border: 1px solid #b6e6f2;
}

.portal-login-role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 4px 0 8px;
  padding: 5px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.portal-login-role-switch button {
  min-height: 44px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #0B1120;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
}

.portal-login-role-switch button.active {
  background: #00AEEF;
  color: #ffffff;
  border-color: #00AEEF;
  box-shadow: 0 14px 28px rgba(0, 174, 239, 0.22);
}

.portal-login-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  background: #ffffff;
  border: 0;
  border-radius: 20px;
  padding: 30px 28px;
  text-align: left;
  box-shadow: none;
}

.portal-login-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}

.portal-login-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f7fa;
  border: 1px solid #b6e6f2;
  color: #00AEEF;
  font-size: 1.15rem;
}

.portal-login-card h3 {
  margin: 0 0 4px;
  color: #0B1120;
  font-size: 1.2rem;
  font-weight: 900;
}

.portal-login-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

.portal-login-card label {
  color: #0B1120;
  font-size: 0.84rem;
  font-weight: 900;
}

.portal-login-card input[type="email"],
.portal-password-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  color: #0B1120;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 14px;
}

.portal-login-card input:focus {
  outline: 3px solid rgba(0, 174, 239, 0.22);
  border-color: #00AEEF;
}

.portal-password-field {
  position: relative;
}

.portal-password-field input {
  padding-right: 48px;
}

.portal-password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.portal-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}

.portal-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

.portal-check input {
  accent-color: #00AEEF;
}

.portal-login-options a {
  color: #0284c7;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-login-options a:hover {
  text-decoration: underline;
}

.portal-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: #00AEEF;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 174, 239, 0.24);
}

.portal-login-submit:hover {
  transform: translateY(-1px);
}

.portal-login-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 1 / -1;
  margin: 8px auto 8px;
  padding: 0 12px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
}

.portal-login-note i {
  color: #00AEEF;
}

.portal-section {
  padding: 56px 0 72px;
}

.portal-section--locked {
  display: none;
}

.portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.portal-section-head h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0B1120;
  margin: 0;
}

.portal-preview-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.12);
  color: #0284c7;
  border: 1px solid rgba(0, 174, 239, 0.25);
}

.portal-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 24px;
}

.portal-cancel-card {
  background: #e0f7fa;
  color: #0B1120;
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid #b6e6f2;
  border-left: 6px solid #00AEEF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portal-cancel-card.state-safe {
  border-left-color: #2ECC71;
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.28);
}

.portal-cancel-card.state-warning {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(46, 204, 113, 0.35);
  border-left-color: #2ecc71;
}

.portal-cancel-card.state-expired {
  background: rgba(254, 226, 226, 0.6);
  border-color: rgba(220, 38, 38, 0.3);
  border-left-color: #dc2626;
}

.portal-cancel-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-cancel-card h3 i {
  color: #00AEEF;
}

.portal-cancel-card .cancel-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 4px;
}

.portal-countdown {
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}

.portal-countdown-unit {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 58px;
  text-align: center;
}

.portal-countdown-unit .num {
  font-size: 1.45rem;
  font-weight: 900;
  display: block;
  line-height: 1.1;
  color: #00AEEF;
}

.portal-countdown-unit .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portal-cancel-actions .portal-btn-ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #0B1120;
}

.portal-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portal-cal-toolbar h3 {
  font-weight: 900;
  margin: 0;
  font-size: 1.1rem;
}

.portal-cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-cal-nav button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: #0B1120;
}

.portal-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.portal-view-toggle button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  color: #334155;
}

.portal-view-toggle button.active {
  background: #00AEEF;
  color: #fff;
  border-color: #00AEEF;
}

.portal-schedule-list h3 {
  font-weight: 900;
  font-size: 1rem;
  margin: 18px 0 10px;
}

.portal-schedule-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
}

.portal-schedule-item:last-child {
  border-bottom: none;
}

.portal-schedule-date {
  min-width: 52px;
  text-align: center;
  background: rgba(0, 174, 239, 0.1);
  border-radius: 12px;
  padding: 8px 6px;
  flex-shrink: 0;
}

.portal-schedule-date .day {
  font-size: 1.2rem;
  font-weight: 900;
  color: #00AEEF;
  display: block;
  line-height: 1;
}

.portal-schedule-date .mon {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.portal-schedule-body strong {
  display: block;
  font-weight: 800;
  color: #0B1120;
}

.portal-schedule-body span {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}

.portal-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-schedule-list > li {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.portal-schedule-list > li:last-child {
  border-bottom: none;
}

.portal-schedule-list > li strong {
  display: block;
  font-weight: 800;
  color: #0B1120;
  margin-bottom: 4px;
}

.portal-schedule-list > li > span:not(.portal-schedule-meta) {
  display: block;
  font-weight: 700;
  color: #0284c7;
}

.portal-schedule-meta {
  display: block;
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

.portal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.portal-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: calc(var(--site-header-height, 56px) + 12px);
}

.portal-user {
  padding: 12px 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.portal-user-name {
  font-weight: 900;
  font-size: 1rem;
  color: #0B1120;
}

.portal-user-meta {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

.portal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.portal-nav button i {
  width: 20px;
  text-align: center;
  color: #00AEEF;
  opacity: 0.85;
}

.portal-nav button:hover {
  background: rgba(0, 174, 239, 0.08);
}

.portal-nav button.active {
  background: rgba(0, 174, 239, 0.12);
  color: #0B1120;
  border: 1px solid rgba(0, 174, 239, 0.22);
}

.portal-main {
  min-width: 0;
}

.portal-panel {
  display: none;
  animation: portalFade 0.25s ease;
}

.portal-panel.active {
  display: block;
}

@keyframes portalFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.portal-card h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-card h2 i {
  color: #00AEEF;
}

.portal-card .lead {
  color: #64748b;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.portal-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.portal-stat .label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-stat .value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0B1120;
  margin-top: 4px;
}

.portal-stat .value.due {
  color: #00AEEF;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.portal-btn-primary {
  background: #00AEEF;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.25);
}

.portal-btn-ghost {
  background: #fff;
  color: #0B1120;
  border: 1px solid #e2e8f0;
}

.portal-btn:hover {
  transform: translateY(-1px);
}

.portal-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.portal-list-item:last-child {
  border-bottom: none;
}

.portal-list-item strong {
  display: block;
  font-weight: 800;
  color: #0B1120;
}

.portal-list-item span {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}

.portal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.portal-badge-upcoming {
  background: rgba(0, 174, 239, 0.12);
  color: #0284c7;
  border: 1px solid rgba(0, 174, 239, 0.25);
}

.portal-badge-paid {
  background: rgba(46, 204, 113, 0.12);
  color: #15803d;
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.portal-badge-pending {
  background: #fff6e8;
  color: #b45309;
  border: 1px solid #ffd8a8;
}

.portal-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.portal-cal-head {
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  color: #64748b;
  padding: 6px 0;
}

.portal-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border: 1px solid transparent;
}

.portal-cal-day.muted {
  color: #cbd5e1;
  background: transparent;
}

.portal-cal-day.available {
  background: rgba(0, 174, 239, 0.1);
  border-color: rgba(0, 174, 239, 0.25);
  cursor: pointer;
}

.portal-cal-day.selected {
  background: #00AEEF;
  color: #fff;
  border-color: #00AEEF;
}

.portal-cal-day.booked {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.35);
}

.portal-checklist {
  margin-top: 12px;
}

.portal-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.portal-check-row.done i {
  color: #2ECC71;
}

.portal-check-row.pending i {
  color: #cbd5e1;
}

.portal-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.portal-photo-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.portal-photo-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.portal-photo-card figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
}

.portal-chat {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
}

.portal-chat-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.portal-msg.them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.portal-msg.you {
  align-self: flex-end;
  background: #00AEEF;
  color: #fff;
}

.portal-msg time {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 4px;
}

.portal-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.portal-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.portal-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.portal-addon {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.portal-addon:hover {
  border-color: rgba(0, 174, 239, 0.4);
}

.portal-addon.selected {
  border-color: #00AEEF;
  background: rgba(0, 174, 239, 0.06);
}

.portal-addon h4 {
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.portal-addon p {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

.portal-addon .price {
  font-weight: 900;
  color: #00AEEF;
  font-size: 0.9rem;
}

.portal-quote-box {
  border: 2px solid #00AEEF;
  border-radius: 16px;
  padding: 20px;
  background: rgba(0, 174, 239, 0.04);
}

.portal-quote-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px dashed #e2e8f0;
}

.portal-quote-line.total {
  border-bottom: none;
  font-weight: 900;
  font-size: 1.1rem;
  color: #0B1120;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #e2e8f0;
}

.portal-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0B1120;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: min(420px, calc(100vw - 36px));
  text-align: center;
}

.portal-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.portal-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portal-pay-pill {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
}

.portal-pay-pill.selected {
  border-color: #00AEEF;
  background: rgba(0, 174, 239, 0.08);
}

@media (max-width: 900px) {
  .portal-login-section {
    padding: 0;
  }

  .portal-login-container {
    padding: 48px 14px 54px;
  }

  .portal-login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 8px;
  }

  .portal-login-pill {
    margin-bottom: 16px;
    font-size: 0.78rem;
  }

  .portal-login-logo {
    width: min(190px, 76vw);
    margin-bottom: 20px;
  }

  .portal-login-intro {
    padding: 24px 18px;
    text-align: center;
  }

  .portal-login-points {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .portal-login-role-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .portal-login-card {
    padding: 18px 16px;
  }

  .portal-login-card-head {
    align-items: center;
  }

  .portal-login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .portal-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .portal-stat-grid {
    grid-template-columns: 1fr;
  }

  .portal-addon-grid,
  .portal-photo-grid {
    grid-template-columns: 1fr;
  }
}
