/* ═══════════════════════════════════════════════════════════════
   DMC AUTH — PREMIUM REDESIGN
   Delhi Medical Council · 2026
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary:   #1a2b48; /* Deep Navy */
  --accent:    #c9a14d; /* Mustard Gold */
  --accent-lt: #e5c37d;
  --white:     #FFFFFF;
  --off:       #F8FAFC;
  --text:      #1E293B;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --glass:     rgba(255, 255, 255, 0.95);
  --shadow:    0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --font-main: 'Outfit', sans-serif;
  --font-sec:  'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; width: 100%; }

body.dmc-auth-page {
  font-family: var(--font-main);
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}

body.dmc-auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 43, 72, 0.9) 0%, rgba(26, 43, 72, 0.5) 100%);
  z-index: 0;
}

body.dmc-auth-page > * {
  position: relative;
  z-index: 1;
}

/* ── HEADER ────────────────────────────────────────────────── */
.dmc-header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 40px;
  background: rgba(26, 43, 72, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dmc-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dmc-header-logo {
  height: 45px;
}

.dmc-brand-text h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.dmc-brand-text p {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 500;
}

.dmc-nav-menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.dmc-nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.dmc-nav-menu a:hover {
  color: var(--accent);
}

.dmc-nav-menu .dropdown-toggle::after {
  content: '\f107';
  font-family: FontAwesome;
  margin-left: 6px;
  font-size: 11px;
}

.dmc-header-actions {
  display: flex;
  gap: 12px;
}

.dmc-btn-smr {
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
}

.dmc-btn-smr:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.dmc-btn-services {
  padding: 6px 20px;
  background: var(--accent);
  border-radius: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s;
}

.dmc-btn-services:hover {
  background: var(--accent-lt);
  transform: translateY(-1px);
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.dmc-hero {
  position: relative;
  height: calc(100vh - 55px);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 5px 80px;
  background: transparent;
  overflow: visible;
}


.dmc-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 550px;
  padding-right: 20px;
}

.dmc-hero-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1.1;
}

.dmc-hero-content .tagline {
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.9;
  margin-bottom: 15px;
}

.dmc-benefits {
  display: flex;
  gap: 30px;
}

.dmc-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.dmc-benefit-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  transition: all 0.3s;
  background: rgba(255,255,255,0.05);
}

.dmc-benefit-item span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

/* ── LOGIN CARD ───────────────────────────────────────────── */
.dmc-login-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.dmc-login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dmc-login-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.dmc-form-group {
  margin-bottom: 8px;
}

.dmc-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dmc-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  background: #f8fafc;
  transition: all 0.3s;
}

.dmc-input:focus {
  border-color: var(--accent);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(201, 161, 77, 0.1);
}

.dmc-input-wrapper {
  position: relative;
}

.dmc-input-wrapper .toggle-pass {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  z-index: 5;
}

/* ── Captcha ───────────────────────────────────────────── */
.dmc-captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  width: fit-content;
}

.dmc-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (max-width: 400px) {
  .dmc-captcha-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dmc-captcha-container {
    width: 100% !important;
    justify-content: space-between;
  }
}

.dmc-captcha-input-wrap {
  flex: 1;
}

.dmc-captcha-img {
  flex: 1;
}

.dmc-captcha-refresh {
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
}

/* ── SERVICE CARDS ────────────────────────────────────────── */
/* --- Redesigned Services Section --- */
.dmc-services-section {
  position: relative;
  padding: 60px 80px;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid var(--border);
}
.dmc-section-header {
  margin-bottom: 40px;
}
.dmc-section-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}
.dmc-section-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}
.dmc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.dmc-service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  color: inherit;
}
.dmc-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.dmc-service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dmc-service-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dmc-service-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
}
.dmc-service-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
}
.dmc-service-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: all 0.2s;
}
.dmc-service-link i {
  transition: transform 0.2s;
}
.dmc-service-card:hover .dmc-service-link i {
  transform: translateX(4px);
}

/* Card Themes */
.card-provisional .dmc-service-icon-box { background: #e8f0fe; color: #1a2b48; }
.card-provisional .dmc-service-link { color: #1a2b48; }

.card-permanent .dmc-service-icon-box { background: #e8f5e9; color: #2e7d32; }
.card-permanent .dmc-service-link { color: #2e7d32; }

.card-renewal .dmc-service-icon-box { background: #f3e5f5; color: #6a1b9a; }
.card-renewal .dmc-service-link { color: #6a1b9a; }

.card-duplicate .dmc-service-icon-box { background: #fff3e0; color: #ef6c00; }
.card-duplicate .dmc-service-link { color: #ef6c00; }

.card-transfer .dmc-service-icon-box { background: #e3f2fd; color: #1565c0; }
.card-transfer .dmc-service-link { color: #1565c0; }

.card-change .dmc-service-icon-box { background: #e0f2f1; color: #008080; }
.card-change .dmc-service-link { color: #008080; }


/* --- How It Works Section --- */
.dmc-how-it-works-section {
  padding: 60px 80px;
  background: var(--off);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  position: relative;
}
.dmc-hiw-container {
  display: flex;
  gap: 50px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.dmc-hiw-title-box {
  flex: 0 0 240px;
  border-right: 2px solid var(--border);
  padding-right: 40px;
}
.dmc-hiw-title-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.dmc-hiw-title-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.dmc-hiw-steps-box {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.dmc-hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 140px;
}
.dmc-hiw-icon-wrapper {
  position: relative;
  margin-bottom: 15px;
  display: inline-block;
}
.dmc-hiw-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}
.dmc-hiw-step:hover .dmc-hiw-icon-circle {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}
.dmc-hiw-step-number {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  z-index: 2;
}
.dmc-hiw-step-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.dmc-hiw-step-info p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.dmc-hiw-connector {
  flex: 1;
  height: 2px;
  border-top: 2px dashed #cbd5e1;
  margin-top: 32px;
  min-width: 20px;
}

.dmc-btn-login {
  width: 100%;
  height: 42px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  display: block;
  text-align: center;
  line-height: 42px;
  text-decoration: none;
}

.dmc-btn-login:hover {
  background: #b68f3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 161, 77, 0.4);
}

.dmc-login-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.dmc-login-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.dmc-link-primary { color: var(--primary); }
.dmc-link-secondary { color: var(--muted); font-size: 13px !important; }

.dmc-login-links a:hover {
  color: var(--accent);
}

/* ── UTILITIES ────────────────────────────────────────────── */
.dmc-error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.spin-anim { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── REGISTRATION EXTENSIONS ─────────────────────────────── */
.dmc-reg-page {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 150px 20px 100px !important; /* Extra top margin for fixed header */
  background-attachment: fixed;
  overflow-y: auto !important;
  height: auto !important;
}

.dmc-reg-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.dmc-reg-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 650px;
}

.dmc-reg-card {
  padding: 30px;
}

.dmc-reg-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.dmc-reg-header h3 {
  margin-bottom: 4px;
}

.dmc-reg-header p {
  font-size: 13px;
  color: var(--muted);
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}

.reg-full {
  grid-column: span 2;
}

.dmc-prefix-wrap {
  display: flex;
  align-items: center;
}

.dmc-prefix {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-right: none;
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--primary);
  border-radius: 5px 0 0 5px;
  font-size: 12px;
}

.dmc-prefix + .dmc-input {
  border-radius: 0 5px 5px 0;
}

.dmc-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  cursor: pointer;
  text-transform: none !important;
  font-size: 13px !important;
  color: var(--primary) !important;
  margin-top: 5px;
}

.dmc-checkbox-label input {
  width: 16px;
  height: 16px;
}

.dmc-sub-section {
  background: #f0f7ff;
  border: 1px solid #cce3ff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.dmc-sub-section p {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nbe-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.dmc-btn-secondary {
  height: 34px;
  padding: 0 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.dmc-btn-secondary:hover {
  background: #2a4370;
}

/* ── RESPONSIVE AUTH ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .dmc-hero {
    padding: 20px 40px;
    gap: 40px;
  }
  .dmc-services-section {
    padding: 40px;
  }
}

@media (max-width: 992px) {
  .dmc-hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 40px 20px;
    text-align: center;
    gap: 30px;
    justify-content: flex-start;
  }
  
  body.dmc-auth-page {
    background-attachment: scroll;
  }
  
  .dmc-hero-content {
    padding-right: 0;
    max-width: 100%;
  }
  
  .dmc-benefits {
    justify-content: center;
    margin-top: 20px;
  }
  
  .dmc-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dmc-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .dmc-hero-content h2 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .dmc-hero-content .tagline {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 35px;
    max-width: 100%;
    line-height: 1.4;
  }
  
  .dmc-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .dmc-benefit-item {
    gap: 8px;
  }
  
  .dmc-benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .dmc-services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .dmc-login-card {
    padding: 25px 15px;
  }
  
  .dmc-login-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
}

/* ── RESPONSIVE REG ───────────────────────────────────────── */
@media (max-width: 900px) {
  .dmc-reg-page {
    padding: 100px 15px 40px;
  }
  
  .dmc-reg-wrap {
    max-width: 100%;
  }
  
  .reg-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .reg-full {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .dmc-reg-page {
    padding: 90px 10px 30px;
  }
  
  .dmc-reg-card {
    padding: 20px 15px;
  }
  
  .dmc-header {
    padding: 15px 20px;
  }
  
  .dmc-brand-text h1 {
    font-size: 16px;
  }
  
  .dmc-header-actions {
    display: none;
  }
}

/* --- How It Works Responsive overrides --- */
@media (max-width: 1200px) {
  .dmc-hiw-container {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .dmc-hiw-title-box {
    flex: none;
    border-right: none;
    border-bottom: 2px solid var(--border);
    padding-right: 0;
    padding-bottom: 20px;
    text-align: center;
  }
  .dmc-hiw-steps-box {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .dmc-hiw-connector {
    display: none;
  }
  .dmc-hiw-step {
    flex: 0 0 200px;
  }
}
@media (max-width: 768px) {
  .dmc-services-section, .dmc-how-it-works-section {
    padding: 40px 20px;
  }
}

