/* Ourel Parent Portal - Portal-specific styles */
/* Shared design tokens live in ../../shared/style.css */

/* ── Parent auth-logo margin ── */
.auth-logo { margin-bottom: 28px; }

/* ══ AUTH FORMS (matches the web portal design language) ═════════════ */

.auth-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray-400);
  margin-top: 18px;
  letter-spacing: .01em;
}

/* SVG lock icon next to reassurance text */
.lock-ico {
  display: inline-block;
  width: 13px; height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1Zm2-2a2 2 0 1 1 4 0v2H6V5Zm2 6.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1Zm2-2a2 2 0 1 1 4 0v2H6V5Zm2 6.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.invite-wrap { margin-top: 16px; }
.invite-row { display: flex; gap: 8px; align-items: flex-start; }
.invite-row .form-group { flex: 1; margin: 0; }
.invite-check {
  height: 47px;
  padding: 0 18px;
  flex-shrink: 0;
}
.invite-error { font-size: 12px; color: var(--red); margin-top: 6px; margin-left: 2px; }

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 18px;
}
.auth-links a {
  color: var(--gray-600);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.auth-links a:hover { color: var(--gold); text-decoration: underline; }

.auth-create {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 22px;
}
.auth-create span { font-size: 13.5px; color: var(--gray-600); }
.auth-create a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  padding: 6px 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.auth-create a:hover { text-decoration: underline; }

.auth-back {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.auth-back:hover { color: var(--gold); text-decoration: underline; }

.auth-school-hint {
  font-size: 12px;
  margin: 5px 2px 0;
  min-height: 16px;
}

.invite-register-note {
  background: rgba(240,253,244,0.90);
  border: 1px solid #bbf7d0;
  color: #1E9E5A;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin: 8px 0 14px;
  line-height: 1.55;
}

.children-block {
  border-top: 1px solid var(--gray-200);
  margin: 16px 0 12px;
  padding-top: 16px;
}
.auth-children-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 12px;
}

.auth-reg-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── School code pill (left panel) ── */
.school-pill {
  display: inline-block;
  background: rgba(26,26,26,0.85);
  color: rgba(255,255,255,0.60);
  font-family: monospace;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── Child entry (registration form) ── */
.child-entry {
  background: rgba(248,250,252,0.70);
  border: 1.5px solid rgba(226,232,240,0.80);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  backdrop-filter: blur(8px);
}

.child-entry .remove-child {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 18px;
  line-height: 1;
  transition: color .15s;
}
.child-entry .remove-child:hover { color: var(--red); }

/* ══ BUTTONS (parent-specific) ═══════════════════════════════════════ */
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Pay Now pill button ── */
.btn-pay-now {
  width: 100%;
  justify-content: center;
  border-radius: 50px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2D5FF0 0%, #2D5FF0 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(45,95,240,0.26), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.btn-pay-now::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  border-radius: inherit;
}
.btn-pay-now:hover:not(:disabled) {
  background: linear-gradient(135deg, #2451D0 0%, #2D5FF0 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,95,240,0.30), 0 2px 8px rgba(45,95,240,0.15);
}
.btn-pay-now:active:not(:disabled) { transform: translateY(0); }
.btn-pay-now:disabled { opacity: 0.42; cursor: not-allowed; }

/* ── Advance badge ── */
.advance-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid rgba(26,26,26,0.12);
}

/* ══ DASHBOARD LAYOUT ═══════════════════════════════════════════════ */
.dashboard-page { min-height: 100vh; background: transparent; }

.topnav {
  background: linear-gradient(90deg, #0A0A0A 0%, #0A0A0A 60%, #0A0A0A 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 6px 24px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}

.topnav::before {
  content: '';
  position: absolute;
  top: -80px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(26,26,26,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.topnav-logo { display: flex; align-items: center; position: relative; z-index: 1; }
.topnav-right { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.topnav-user {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: auto;
  margin-right: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.topnav-tabs {
  background: rgba(26,26,26,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 4px;
}

.topnav-tab {
  padding: 14px 18px;
  color: rgba(255,255,255,0.42);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  transition: all .2s cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
  letter-spacing: 0.02em;
  position: relative;
}
.topnav-tab:hover { color: rgba(255,255,255,0.72); }
.topnav-tab.active {
  color: var(--white);
  border-bottom-color: var(--white);
  text-shadow: 0 0 20px rgba(255,255,255,0.20);
}

.page-content { padding: 32px 28px; max-width: 940px; margin: 0 auto; }

/* ══ STUDENT FEE CARDS ══════════════════════════════════════════════ */
.student-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.student-card {
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.90);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26,26,26,0.08), 0 1px 4px rgba(26,26,26,0.04), inset 0 1px 0 rgba(255,255,255,0.85);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.student-card:hover {
  box-shadow: 0 8px 28px rgba(26,26,26,0.12), 0 2px 8px rgba(26,26,26,0.06);
  transform: translateY(-2px);
}

.student-card-header {
  background: linear-gradient(135deg, #0A0A0A 0%, #0A0A0A 70%, #0A0A0A 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.student-card-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(26,26,26,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.student-card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.30) 40%, rgba(255,255,255,0.05) 100%);
}

.student-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.60);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.10);
}

.student-card-header h3 { color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.student-card-header p  { color: rgba(255,255,255,0.45); font-size: 12px; margin-top: 2px; font-weight: 500; }
.student-card-body { padding: 20px; }

.fee-row    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fee-label  { font-size: 12.5px; color: var(--gray-600); font-weight: 500; letter-spacing: 0.01em; }
.fee-amount { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* ── Fee breakdown ── */
.fee-breakdown {
  background: rgba(248,250,252,0.65);
  border: 1px solid rgba(226,232,240,0.70);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 13px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
}
.fee-breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--gray-600);
  font-size: 12.5px;
}
.fee-breakdown-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--navy);
  padding-top: 9px;
  border-top: 1px solid rgba(0,0,0,0.07);
  margin-top: 9px;
  font-size: 14px;
}

/* ── Payment notice ── */
.payment-notice {
  background: rgba(240,253,244,0.88);
  border: 1px solid rgba(187,247,208,0.65);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(22,163,74,0.07), inset 0 1px 0 rgba(255,255,255,0.60);
}
.payment-notice .icon { font-size: 20px; flex-shrink: 0; }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; padding: 40px 24px; min-height: 200px; }
  .auth-right { padding: 32px 20px; }
  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .student-cards { max-width: 100%; }
  .page-content { padding: 16px; }
  .topnav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: visible;
    row-gap: 6px;
  }
  .topnav-user {
    flex: 1 1 100%;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    white-space: normal;
    overflow: visible;
    font-size: 14px;
    order: 1;
  }
  .topnav-right {
    margin-left: auto;
  }
  .topnav-tabs { padding: 0 16px; overflow-x: auto; }
}
