@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-dark: #022c22;
  --primary: #064e3b;
  --primary-light: #047857;
  --accent-emerald: #10b981;
  --accent-gold: #fbbf24;
  --bg-slate: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --radius-xl: 20px;
  --radius-lg: 12px;
  --shadow-glow: 0 20px 40px -15px rgba(6, 78, 59, 0.15);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Form Panel Padding Balance */
.form-panel {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-slate);
  overflow-y: auto;
}


body {
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==========================================
   1. REGISTRATION SPLIT SCREEN LAYOUT
   ========================================== */
/* Split Wrapper Alignments */
.split-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: stretch; /* Both sides equal height */
}

/* Left Brand Panel - Fixed Extra Gaps */
.brand-panel {
  flex: 0 0 40%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 40px; /* Reduced excessive padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from space-between to flex-start */
  gap: 25px; /* Clean uniform spacing between elements */
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  bottom: -50px;
  right: -50px;
  pointer-events: none;
}

.brand-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: -0.5px;
}

.brand-header p {
  color: #a7f3d0;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Brand Body Spacing Fix */
.brand-body {
  margin: 0; /* Extra margin removed */
}


.brand-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #ecfdf5;
}

.feature-list li .icon-check {
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.brand-footer {
  font-size: 0.85rem;
  color: #6ee7b7;
}

.form-panel {
  flex: 1;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-slate);
  overflow-y: auto;
}

.form-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* Multi-column Grid Inputs */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group.full-width {
  grid-column: span 2;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-group label span {
  color: #ef4444;
}

.input-group input, .input-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.25s ease;
  outline: none;
}

.input-group input:focus {
  background: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--accent-gold);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.3);
}

/* ==========================================
   2. GLASSMORPHISM LOGIN PAGE
   ========================================== */
.login-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #064e3b, #022c22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  padding: 45px 35px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card .logo-img {
  max-height: 60px;
  margin-bottom: 16px;
}

.glass-card h2 {
  color: var(--primary-dark);
  font-size: 1.6rem;
  font-weight: 800;
}

.glass-card p.desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* ==========================================
   3. APP PORTAL DASHBOARD
   ========================================== */
.portal-navbar {
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand h1 {
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.btn-logout-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logout-pill:hover {
  background: #ef4444;
  color: #ffffff;
}

.portal-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.profile-hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  box-shadow: var(--shadow-glow);
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-circle {
  width: 70px;
  height: 70px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.user-text p {
  color: #a7f3d0;
  font-size: 0.9rem;
}

.status-chip {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-chip.paid {
  background: #dcfce7;
  color: #15803d;
}

.status-chip.pending {
  background: #fef3c7;
  color: #b45309;
}

/* Dashboard Content Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.data-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.data-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.info-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-tile {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid #edf2f7;
}

.info-tile label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.info-tile span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.payment-side-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.payment-side-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.bank-details {
  text-align: left;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.bank-details p {
  margin-bottom: 6px;
  color: var(--text-main);
}

.qr-wrapper img {
  width: 100%;
  max-width: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 8px;
  background: #fff;
}

/* Alerts */
.alert {
  padding: 14px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Responsive Adjustments */
@media (max-width: 992px) {
  .split-wrapper { flex-direction: column; }
  .brand-panel { flex: none; padding: 40px 25px; }
  .form-panel { padding: 30px 15px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .modern-grid, .info-list-grid { grid-template-columns: 1fr; }
  .input-group.full-width { grid-column: span 1; }
  .profile-hero-card { flex-direction: column; text-align: center; gap: 15px; }
  .user-meta { flex-direction: column; }
}