/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d2044;
  --primary-hover: #0a1833;
  --primary-focus: #1c3664;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-muted: #f3f4f6;
  --border-color: #e5e7eb;
  --border-focus: #1c3664;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.125rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.5rem;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

.auth-header-bg {
  background: var(--primary);
  height: 40vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Container and layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo i {
  color: var(--primary);
  font-size: 1.5rem;
}

.logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

nav.desktop-nav {
  display: none;
}

nav.desktop-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav.desktop-nav a:hover {
  color: var(--text-primary);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-menu-btn:hover {
  color: var(--text-primary);
}

.mobile-menu {
  display: none;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-menu nav a:not(:last-child) {
  border-bottom: 1px solid var(--bg-muted);
}

.mobile-menu nav a:hover {
  color: var(--text-primary);
}

/* Page header */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
}

/* Card */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.5s ease-out;
}

/* Form elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.form-group .label-row a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.form-group .label-row a:hover {
  color: var(--primary-hover);
}

.input-wrapper {
  position: relative;
}

.input-wrapper .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.input-wrapper .toggle-password:hover {
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder {
  color: var(--text-muted);
}

.password-strength {
  height: 0.25rem;
  width: 100%;
  background-color: var(--bg-muted);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s, background-color 0.3s;
}

.password-strength-bar.weak {
  width: 33.333333%;
  background-color: #ef4444;
}

.password-strength-bar.medium {
  width: 66.666667%;
  background-color: #f59e0b;
}

.password-strength-bar.strong {
  width: 100%;
  background-color: #10b981;
}

.password-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
  accent-color: var(--primary);
}

.checkbox-group label {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.checkbox-group label a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.checkbox-group label a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.form-footer span {
  color: var(--text-secondary);
}

.form-footer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.2s;
}

.form-footer a:hover {
  color: var(--primary-hover);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 1rem 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.auth-feature-card i {
  font-size: 24px;
  margin-bottom: 12px;
  color: #a78bfa;
}

.auth-feature-card span {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.auth-right {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.auth-right-content {
  width: 100%;
  max-width: 400px;
}

.auth-logo-pill {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #3b82f6;
  font-size: 18px;
  margin: 0 auto 24px auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.auth-right h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.auth-right p {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 32px;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.auth-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.auth-btn:hover {
  background: #2563eb;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
}

.auth-links a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-split-screen {
    flex-direction: column;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    min-height: 100vh;
  }
}



/* Responsive styles */
@media (min-width: 640px) {
  .card {
    padding: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  nav.desktop-nav {
    display: block;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* ===== MBC DATA PHASE 2 AUTH THEME ===== */

.auth-split-screen {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0d2044 0%, #061129 100%);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
}

.auth-left h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.auth-left p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ================= MOBILE APP UI ================= */
@media (max-width: 991px) {
  body {
    background-color: #11131f !important;
  }
  
  .mobile-app-container {
    background: linear-gradient(180deg, #443bc2 0%, #15162b 25%, #11131f 100%);
    min-height: 100vh;
    padding-bottom: 80px;
    color: #fff;
    font-family: 'Inter', sans-serif;
  }

  .mobile-app-header {
    padding: 30px 20px 20px 20px;
  }

  .mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }

  .mobile-avatar {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #443bc2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .mobile-greeting-text {
    text-align: center;
    flex: 1;
  }

  .greeting-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
  }

  .greeting-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }

  .mobile-notification {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    color: #fff;
  }

  .mobile-notification .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-balance-area {
    text-align: center;
    margin-bottom: 30px;
  }

  .balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
  }

  .balance-amount {
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    letter-spacing: -1px;
  }

  .balance-amount i {
    font-size: 18px;
    opacity: 0.7;
    cursor: pointer;
  }

  .mobile-floating-card {
    margin: 0 20px;
    background: #1e2130;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
    margin-bottom: -30px;
    border: 1px solid rgba(255,255,255,0.05);
  }

  .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
  }

  .action-item:hover {
    color: #fff;
  }

  .action-icon {
    font-size: 24px;
    position: relative;
  }

  .mobile-app-body {
    background: #11131f;
    padding: 60px 20px 20px 20px;
    border-radius: 30px 30px 0 0;
    min-height: 50vh;
  }

  .mobile-kyc-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
  }
  
  .mobile-kyc-banner:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .kyc-icon {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .kyc-text {
    flex: 1;
  }

  .kyc-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
  }

  .kyc-desc {
    font-size: 12px;
    color: #a1a1aa;
  }

  .mobile-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 10px;
    margin-bottom: 30px;
  }

  .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    text-decoration: none;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
  }

  .service-item:hover {
    color: #fff;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }

  .mobile-referral-banner {
    background: linear-gradient(135deg, #2a2886 0%, #19163b 100%);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
  }

  .ref-content {
    flex: 1;
    padding-right: 16px;
  }

  .ref-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
  }

  .ref-content p {
    font-size: 12px;
    color: #a1a1aa;
    margin: 0 0 16px 0;
    line-height: 1.5;
  }

  .ref-btn {
    background: #fff;
    color: #1e1b4b;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .ref-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
  }

  /* Override Bottom Nav Theme for Mobile Redesign */
  .bottom-nav {
    background: #141523 !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
  }

  .bottom-nav-item {
    color: #64748b !important;
  }
  
  .bottom-nav-item.active {
    color: #ef4444 !important;
  }
}
