/* ============================================================
   Chennai Matrimony — Login page redesign (v1.5)
   SCOPED to .cm-lg-wrap so it cannot affect the shared
   master header/footer. Only the login content is restyled.
   Source design: cm/html/login.html + css/login.css
   ============================================================ */

/* --- Design tokens (scoped to the login wrapper) --- */
.cm-lg-wrap {
  --bg: #fffcf8;
  --paper: #ffffff;
  --surface: #fbefde;
  --ink: #1f1410;
  --mute: #766357;
  --line: rgba(31, 20, 16, 0.10);
  --primary: #d91234;        /* brand red */
  --primary-dark: #80081b;   /* rich burgundy */
  --primary-soft: #fcdde3;
  --gold: #d4a84b;
  --green: #1f472f;
  --green-soft: #ddebe0;
  --serif: 'Roboto', sans-serif;
  --sans: 'Roboto', sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.cm-lg-wrap * { box-sizing: border-box; }

/* Force Roboto + sane line-height on the login section (beats legacy CSS) */
.cm-lg-wrap, .cm-lg-wrap * {
  font-family: 'Roboto', sans-serif !important;
  line-height: 1.5 !important;
}

/* --- Defeat legacy `*{font-size:12px}` / `a{font-size:12px}` by sizing the LEAF text elements --- */
.cm-lg-wrap .lg-left h1 { font-size: 32px !important; }
.cm-lg-wrap .lg-left-sub { font-size: 15.5px !important; }
.cm-lg-wrap .lg-form-card h2 { font-size: 22px !important; }
.cm-lg-wrap .lg-label { font-size: 14.5px !important; }
.cm-lg-wrap .lg-input { font-size: 16px !important; }
.cm-lg-wrap .lg-server-error { font-size: 13px !important; }
.cm-lg-wrap .lg-forgot-pass { font-size: 14.5px !important; }
.cm-lg-wrap .lg-submit-btn { font-size: 16px !important; }
.cm-lg-wrap .lg-right h1,
.cm-lg-wrap .lg-right h1 a,
.cm-lg-wrap .lg-right h1 a span { font-size: 26px !important; }

/* "Join Now" link color (the text is inside a <span> the legacy *{color:#666} was greying out) */
.cm-lg-wrap .lg-right h1 a,
.cm-lg-wrap .lg-right h1 a span {
  color: var(--primary) !important;
  font-weight: 700 !important;
  text-decoration: none;
}
.cm-lg-wrap .lg-right h1 a:hover,
.cm-lg-wrap .lg-right h1 a:hover span {
  text-decoration: underline;
}
.cm-lg-wrap .lg-right-sub { font-size: 15px !important; }
.cm-lg-wrap .lg-right-list li { font-size: 15px !important; }
.cm-lg-wrap .lg-right-btn { font-size: 15.5px !important; }

/* --- Layout --- */
.cm-lg-wrap .lg {
  max-width: 1000px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

.cm-lg-wrap .lg-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px -25px rgba(31, 20, 16, 0.15);
  overflow: hidden;
}

/* Single-column variant (e.g. logout-confirm page) */
.cm-lg-wrap .lg-single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}
.cm-lg-wrap .lg-single .lg-left {
  border-right: none;
}

/* --- Left: login form --- */
.cm-lg-wrap .lg-left {
  padding: 50px;
  border-right: 1px solid var(--line);
}

.cm-lg-wrap .lg-left h1 {
  font-family: var(--sans);
  font-size: 32px;
  color: var(--primary-dark);
  margin: 0 0 8px;
  font-weight: 600;
}

.cm-lg-wrap .lg-left-sub {
  font-size: 15.5px;
  color: var(--mute);
  line-height: 1.6;
  margin: 0 0 32px;
}

.cm-lg-wrap .lg-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.cm-lg-wrap .lg-form-card h2 {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 24px;
  border-bottom: 1.5px dashed var(--line);
  padding-bottom: 10px;
  font-weight: 500;
}

.cm-lg-wrap .lg-field-group { margin-bottom: 20px; }

.cm-lg-wrap .lg-label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

/* asp:TextBox renders as <input>; target both class and inputs in the wrapper */
.cm-lg-wrap .lg-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.cm-lg-wrap .lg-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Server-side validators / error labels */
.cm-lg-wrap .lg-server-error {
  display: block;
  font-size: 12.5px;
  color: var(--primary);
  margin-top: 6px;
  font-weight: 600;
}

.cm-lg-wrap .lg-btn-row { margin-top: 28px; }

/* The real ASP.NET submit (ImageButton) is hidden; the styled button clicks it */
.cm-lg-wrap .lg-submit-img {
  position: absolute !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0; padding: 0;
}

.cm-lg-wrap .lg-submit-btn {
  width: 100%;
  height: 50px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 51, 107, 0.2);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cm-lg-wrap .lg-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 51, 107, 0.35);
  filter: brightness(1.05);
}

.cm-lg-wrap .lg-submit-btn:active { transform: translateY(0); }

.cm-lg-wrap .lg-forgot-pass {
  display: inline-block;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cm-lg-wrap .lg-forgot-pass:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Right: member promotion panel --- */
.cm-lg-wrap .lg-right {
  padding: 50px;
  background: linear-gradient(180deg, #fffdfa, #fdfaf5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cm-lg-wrap .lg-right h1 {
  font-family: var(--sans);
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 600;
}

.cm-lg-wrap .lg-right h1 a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.cm-lg-wrap .lg-right h1 a:hover { text-decoration: underline; }

.cm-lg-wrap .lg-right-sub {
  font-size: 15px;
  color: var(--mute);
  line-height: 1.6;
  margin: 0 0 24px;
}

.cm-lg-wrap .lg-right-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  gap: 14px;
}

.cm-lg-wrap .lg-right-list li {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cm-lg-wrap .lg-right-list li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 800;
  font-size: 15px;
  background: var(--green-soft);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cm-lg-wrap .lg-right-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.cm-lg-wrap .lg-right-btn:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(200, 51, 107, 0.1);
}

/* --- Responsive --- */
@media (max-width: 850px) {
  .cm-lg-wrap .lg-split { grid-template-columns: 1fr; }
  .cm-lg-wrap .lg-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .cm-lg-wrap .lg-left,
  .cm-lg-wrap .lg-right { padding: 36px 24px; }
}

/* ============================================================
   Tamilnadu Community Based Brides & Grooms — EXACT home-page design
   (copied from css/home-exact.css). Variables are declared on the
   section so it's self-contained. Loads only on login.aspx.
   ============================================================ */
.community-links-section {
  --bg:#fffcf8; --paper:#FFFFFF; --surface:#FBEFDE; --ink:#1F1410; --mute:#766357;
  --line:rgba(31,20,16,0.10); --primary:#D91234; --primary-dark:#80081B; --gold:#D4A84B;
  --font-sans:'Roboto',sans-serif; --font-serif:'Fraunces',Georgia,serif;
  --transition:all 0.3s cubic-bezier(0.25,0.8,0.25,1); --radius-md:8px;
  padding: 80px 0; background: var(--bg); border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
  /* full-bleed: break out of the master's .content_wrapper so this is its own
     full-width segment (band spans the viewport, content centered below) */
  width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
}
.community-links-section .container { max-width: 1200px !important; width: auto !important; margin: 0 auto !important; padding: 0 24px !important; }
.community-section-header { text-align: center; max-width: 800px; margin: 0 auto 56px; position: relative; z-index: 2; }
.community-section-header .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.community-section-header .section-title { font-family: var(--font-sans); font-weight: 500; color: var(--ink); letter-spacing: -0.5px; line-height: 1.15; font-size: 38px; margin-bottom: 16px; }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 24px; margin-bottom: 48px; position: relative; z-index: 2; }
.community-col { display: flex; flex-direction: column; gap: 12px; }
.comm-link {
  font-family: var(--font-sans); font-size: 13.5px; color: var(--mute); text-decoration: none; font-weight: 500;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: var(--transition); box-shadow: 0 2px 4px rgba(31,20,16,0.02);
}
.comm-link::before { content: "\2726"; color: var(--gold); font-size: 9px; transition: transform 0.3s ease; }
.comm-link:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); transform: translateX(4px); box-shadow: 0 4px 10px rgba(31,20,16,0.05); }
.comm-link:hover::before { transform: scale(1.2) rotate(90deg); color: var(--primary); }
.community-footer { text-align: center; margin-top: 24px; position: relative; z-index: 2; }
.comm-more-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: var(--primary); color: #fff !important; border-radius: 99px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px -8px var(--primary); transition: var(--transition);
}
.comm-more-btn span, .comm-more-btn svg { color: #fff !important; stroke: #fff; }
.comm-more-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px -6px var(--primary); }
.comm-more-btn svg { transition: transform 0.3s ease; }
.comm-more-btn:hover svg { transform: translateX(4px); }
@media (max-width: 1024px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .community-links-section { padding: 60px 24px; } .community-section-header .section-title { font-size: 28px; } .community-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .community-grid { grid-template-columns: 1fr; } }
