/* ==========================================================================
   AASHIRVAAD CONSULTANCY SERVICES - CORE DESIGN SYSTEM & UTILITIES
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #070a13;
  --bg-secondary: #0f1524;
  --bg-card: rgba(20, 27, 45, 0.65);
  --bg-input: rgba(255, 255, 255, 0.03);
  
  --accent-cyan: #00d2ff;
  --accent-emerald: #00f2fe;
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #00f2fe 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 210, 255, 0.5);
  
  --success-color: #10b981;
  --error-color: #ef4444;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-out;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-box: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   WATERMARK BACKGROUND OVERLAY
   ========================================================================== */

.watermark-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/logo.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40% auto; /* Elegant containment size */
  opacity: 0.035; /* Faded subtle watermark */
  filter: grayscale(100%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 42px;
  width: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Support Widgets (Top Right) */
.support-widget {
  display: flex;
  gap: 0.75rem;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.whatsapp-btn {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.whatsapp-btn:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.call-btn {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
}

.call-btn:hover {
  background: var(--accent-gradient);
  color: #070a13;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
}

.icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   HERO / MAIN CONTENT AREA
   ========================================================================== */

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-text .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* Services Mini-Pills */
.hero-services-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
}

.service-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(0, 210, 255, 0.05);
}

/* ==========================================================================
   SSO AUTHENTICATION CARD (GLASSMORPHISM)
   ========================================================================== */

.auth-card-container {
  display: flex;
  justify-content: flex-end;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.auth-card:hover {
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 210, 255, 0.08);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-card-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.02);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #070a13;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-google {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
  margin-right: .75em;
}

.divider:not(:empty)::after {
  margin-left: .75em;
}

.auth-footer-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
}

.auth-footer-text a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

/* User Signed In Panel */
.auth-user-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.profile-pic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.user-profile h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.user-profile p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-icon {
  width: 16px;
  height: 16px;
}

.quick-links {
  width: 100%;
  text-align: left;
}

.quick-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.portal-card:hover {
  background: rgba(0, 210, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.portal-icon {
  font-size: 1.15rem;
}

/* Loading & Alerts */
.auth-loading-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  gap: 1.5rem;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error-color);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-top {
  padding: 4rem 0 3rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo {
  height: 32px;
  width: 32px;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-contact-details a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact-details a:hover {
  color: var(--accent-cyan);
}

.address-text {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.gstin-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.footer-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.footer-services-list li {
  position: relative;
  padding-left: 1rem;
}

.footer-services-list li::before {
  content: '•';
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background: #090e18;
}

.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.powered-by {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-text {
    align-items: center;
    text-align: center;
  }
  
  .hero-text .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-services-mini {
    justify-content: center;
  }
  
  .auth-card-container {
    justify-content: center;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .header-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .support-widget {
    width: 100%;
    justify-content: center;
  }
  
  .support-btn {
    flex: 1;
    justify-content: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .bottom-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
