/* ═══════════════════════════════════════════════════
   register.css  —  Драмын Ертөнц / бүртгэлийн хуудас
   Prefix: .reg-*
   ═══════════════════════════════════════════════════ */

/* ── Body ───────────────────────────────────────── */
.reg-body {
  margin: 0;
  padding: 0;
  background: #06080a;
  min-height: 100vh;
}

/* ── Page grid ──────────────────────────────────── */
.reg-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════
   LEFT SHOWCASE
   ══════════════════════════════════════════════════ */
.reg-showcase {
  position: relative;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: #06080a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark vignette fading down */




.reg-showcase > * {
  position: relative;
  z-index: 1;
}

/* ── Logo ───────────────────────────────────────── */
.reg-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.reg-logo img {
  width: 20%;

}

.reg-logo__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reg-logo__name {
  font-size: 18px;
  font-weight: 700;
  color: #f4f3ee;
  letter-spacing: 0.02em;
  line-height: 1;
}

.reg-logo__tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.66);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 2px 7px;
}

/* ── Hero text ──────────────────────────────────── */
.reg-hero {
  padding: 32px 0;
}

.reg-hero__slogan {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.28;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.reg-hero__slogan em {
  font-style: normal;
  color: #22a47a;
}

.reg-hero__desc {
  font-size: 15px;
  line-height: 1.70;
  color: rgba(244, 243, 238, 0.58);
  max-width: 370px;
  margin: 0;
}

/* ── Stats row ──────────────────────────────────── */
.reg-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.reg-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #f4f3ee;
  line-height: 1;
  margin-bottom: 5px;
}

.reg-stat__label {
  display: block;
  font-size: 12px;
  color: rgba(244, 243, 238, 0.46);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════
   RIGHT PANEL
   ══════════════════════════════════════════════════ */
.reg-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
      background: #1c85624f;
  color: #ffffff !important;
}

/* Mobile logo — hidden on desktop */
.reg-mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}

.reg-mobile-logo__name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff !important;
}

/* ── Form card ──────────────────────────────────── */
.reg-card {
  width: 100%;
  max-width: 380px;
}

/* ── Tabs ───────────────────────────────────────── */
.reg-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 26px;
}

.reg-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.40) !important;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.reg-tab-btn--active {
  color: #ffffff !important;
  border-bottom-color: #1c8662;
}

.reg-tab-btn:hover:not(.reg-tab-btn--active) {
  color: rgba(255, 255, 255, 0.70);
}

.reg-tab-panel {
  display: none;
}

.reg-tab-panel--active {
  display: block;
}

/* ── Card heading ───────────────────────────────── */
.reg-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.reg-card__subtitle {
  font-size: 14px;
  color: #fff !important;
  margin: 0 0 22px;
  line-height: 1.52;
}

/* ── Google button ──────────────────────────────── */
.reg-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-sizing: border-box;
}

.reg-google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.reg-google-hint {
  font-size: 12px;
  color: #ffffff !important;
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.52;
}

/* ── Divider ────────────────────────────────────── */
.reg-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.reg-divider::before,
.reg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.reg-divider__text {
  font-size: 14px;
  color: #ffffff !important;
  white-space: nowrap;
}

/* ── Field label ────────────────────────────────── */
.reg-field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
   color: #ffffff !important;
  margin-bottom: 7px;
}

/* ── Phone input group ──────────────────────────── */
.reg-phone-group {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
  margin-bottom: 14px;
}

.reg-phone-group:focus-within {
  border-color: #22a47a;
}

.reg-phone-prefix {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

/* Mongolian flag — 3 vertical stripes + simplified soymbo */
.reg-flag-mn {
  display: inline-block;
  width: 20px;
  height: 13px;
  border-radius: 1px;
  background: linear-gradient(
    to right,
    #c4272f 0%,    #c4272f 33.3%,
    #015197 33.3%, #015197 66.7%,
    #c4272f 66.7%, #c4272f 100%
  );
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Yellow soymbo mark on the left red stripe */
.reg-flag-mn::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 7px;
  background: #f5c518;
  border-radius: 1px;
  box-shadow: -1.5px 0 0 0 #f5c518, 1.5px 0 0 0 #f5c518;
}

.reg-phone-code {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff !important;
}

.reg-phone-input,
.reg-otp-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  color: #ffffff !important;
  letter-spacing: 0.07em;
}

.reg-phone-input::placeholder,
.reg-otp-input::placeholder {
  color: #ffffff !important;
  letter-spacing: 0.12em;
}

/* ── Password input ─────────────────────────────── */
.reg-pw-group {
  margin-bottom: 14px;
}

.reg-pw-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  color: #ffffff !important;
  transition: border-color .15s;
  box-sizing: border-box;
}

.reg-pw-input:focus {
  border-color: #22a47a;
}

.reg-pw-input::placeholder {
  color: #ffffff !important;
  letter-spacing: 0.18em;
}

/* ── Submit button ──────────────────────────────── */
.reg-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #1c8662;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff !important;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.reg-submit-btn svg path{
    color: #ffffff !important;
}

.reg-submit-btn:hover {
  background: #22a47a;
}

/* ── Terms text ─────────────────────────────────── */
.reg-terms {
  font-size: 12px;
  color: #ffffff !important;
  line-height: 1.65;
  margin: 0 0 22px;
}

.reg-terms a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.reg-terms a:hover {
  color: #22a47a;
}

/* ── Bottom login link ──────────────────────────── */
.reg-footer-link {
  font-size: 16px;
  color: #ffffff !important;
  text-align: center;
  margin: 0;
  margin-top: 20px;
}

.reg-footer-link a {
  color: #22a47a !important;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}

.reg-footer-link a:hover {
  color: #2fd49a;
}

/* ── Error message ──────────────────────────────── */
.reg-error-msg {
  font-size: 13px;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.20);
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   GOOGLE ACCOUNT OVERLAY
   ══════════════════════════════════════════════════ */
.reg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.reg-overlay--open {
  display: flex;
}

.reg-overlay__card {
  background: #ffffff;
  border-radius: 12px;
  width: 400px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.40);
  overflow: hidden;
}

/* Overlay header */
.reg-overlay__head {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid #e8eaed;
}

.reg-overlay__signin-label {
  font-size: 12px;
  color: #5f6368;
  margin: 12px 0 0;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
}

.reg-overlay__title {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin: 14px 0 3px;
  font-family: 'Google Sans', 'Inter', Arial, sans-serif;
}

.reg-overlay__subtitle {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
}

.reg-overlay__subtitle span {
  color: #1a73e8;
}

/* Account list */
.reg-overlay__accounts {
  padding: 8px 0;
}

.reg-overlay__account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s;
}

.reg-overlay__account:hover {
  background: #f1f3f4;
}

.reg-overlay__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Inter', Arial, sans-serif;
}

.reg-overlay__account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reg-overlay__account-name {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
}

.reg-overlay__account-email {
  font-size: 12.5px;
  color: #5f6368;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-overlay__divider {
  height: 1px;
  background: #e8eaed;
  margin: 4px 0;
}

.reg-overlay__add {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background .12s;
}

.reg-overlay__add:hover {
  background: #f1f3f4;
}

.reg-overlay__add-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-overlay__add-text {
  font-size: 14px;
  color: #202124;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
}

/* Overlay footer */
.reg-overlay__footer {
  padding: 12px 24px 18px;
  font-size: 11.5px;
  color: #5f6368;
  line-height: 1.60;
  text-align: center;
  border-top: 1px solid #e8eaed;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
}

.reg-overlay__footer a {
  color: #1a73e8;
  text-decoration: none;
}

.reg-overlay__footer a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — 880px
   ══════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .reg-page {
    grid-template-columns: 1fr;
  }

  .reg-showcase {
    display: none;
  }

  .reg-panel {
    min-height: 100vh;
    padding: 32px 20px;
    justify-content: center;
  }

  .reg-mobile-logo {
    display: flex;
  }
}
