/* =======================================================
   1win Exact Match - Login & Registration Modals
   Matches uploaded screenshot design 100%
   ======================================================= */

/* 1. Backdrop Overlay */
.auth-overlay-1win {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-sizing: border-box;
}

.auth-overlay-1win.open {
  opacity: 1;
  visibility: visible;
}

/* 2. White Card Container */
.auth-card-1win {
  background: #ffffff;
  border-radius: 24px;
  width: 360px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #111111;
  transform: scale(0.95);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auth-overlay-1win.open .auth-card-1win {
  transform: scale(1);
}

.auth-card-1win::-webkit-scrollbar {
  width: 4px;
}
.auth-card-1win::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* 3. Header */
.auth-header-1win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-title-1win {
  font-size: 23px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  letter-spacing: -0.3px;
}

.auth-close-btn-1win {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.auth-close-btn-1win:hover {
  color: #111827;
}

.auth-close-btn-1win svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* 4. Login Sub-Tabs (Phone | Email) */
.auth-tabs-pill-1win {
  display: flex;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
}

.auth-tab-btn-1win {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #111827;
  transition: all 0.18s ease;
}

.auth-tab-btn-1win.active {
  background: #0073f7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 115, 247, 0.35);
}

.auth-tab-btn-1win svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 5. Inputs */
.auth-input-row-1win {
  display: flex;
  align-items: center;
  background: #f4f5f7;
  border: 1.5px solid transparent;
  border-radius: 12px;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 10px;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.auth-input-row-1win.focused,
.auth-input-row-1win:focus-within {
  border-color: #0073f7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 115, 247, 0.12);
}

.auth-input-row-1win.active-blue {
  border-color: #0073f7;
  background: #ffffff;
}

.auth-input-icon-1win {
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.auth-input-icon-1win svg {
  width: 18px;
  height: 18px;
  fill: #6b7280;
}

.auth-divider-vert-1win {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin-right: 12px;
  flex-shrink: 0;
}

.auth-flag-wrap-1win {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  cursor: pointer;
}

.auth-flag-wrap-1win img,
.auth-flag-wrap-1win svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.auth-flag-wrap-1win .auth-caret {
  color: #6b7280;
  font-size: 10px;
}

.auth-prefix-1win {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-right: 4px;
}

.auth-input-field-1win {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  outline: none;
  font-family: inherit;
  padding: 0;
}

.auth-input-field-1win::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

/* Currency selector row */
.auth-currency-row-1win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f5f7;
  border-radius: 12px;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.auth-currency-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-currency-coin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00a859;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.auth-currency-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
}

.auth-currency-arrow {
  color: #6b7280;
  font-size: 12px;
}

/* Micro text & Links */
.auth-helper-text-1win {
  font-size: 12px;
  color: #6b7280;
  margin-top: -4px;
  margin-bottom: 12px;
  padding-left: 2px;
}

.auth-forgot-link-1win {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #0073f7;
  text-decoration: none;
  margin-top: 4px;
  margin-bottom: 16px;
  cursor: pointer;
}

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

.auth-promo-link-1win {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0073f7;
  margin-bottom: 14px;
  cursor: pointer;
  text-decoration: none;
}

.auth-promo-link-1win:hover {
  text-decoration: underline;
}

/* Promo Input Field when open */
.auth-promo-box-1win {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-promo-box-1win input {
  flex: 1;
  background: #f4f5f7;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
}

.auth-promo-box-1win button {
  background: #0073f7;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Terms Checkbox */
.auth-terms-row-1win {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-1win {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #0073f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.auth-checkbox-1win svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
}

.auth-terms-link {
  color: #0073f7;
  font-weight: 700;
  text-decoration: none;
}

/* 6. Action CTA Buttons */
.auth-btn-login-green {
  width: 100%;
  height: 48px;
  background: #00b74a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-btn-login-green:hover {
  background: #00a342;
}

.auth-btn-login-green:active {
  transform: scale(0.99);
}

.auth-btn-reg-green {
  width: 100%;
  height: 48px;
  background: #58d68d;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-btn-reg-green:hover {
  background: #48c77f;
}

.auth-btn-reg-green:active {
  transform: scale(0.99);
}

/* 7. Separator 'or' */
.auth-separator-1win {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px 0;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.auth-separator-1win::before,
.auth-separator-1win::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.auth-separator-1win span {
  padding: 0 10px;
}

/* 8. Social Buttons Row */
.auth-social-row-1win {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-social-btn-1win {
  background: #f4f5f7;
  border: none;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.auth-social-btn-1win:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.auth-social-btn-1win svg {
  width: 20px;
  height: 20px;
}

/* 9. Footer Switcher */
.auth-footer-1win {
  text-align: center;
  font-size: 13.5px;
  color: #6b7280;
  font-weight: 500;
}

.auth-footer-link-1win {
  color: #0073f7;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin-left: 3px;
}

.auth-footer-link-1win:hover {
  text-decoration: underline;
}

/* 10. Mandatory Auth & Lock Overlay */
.cr-game-lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  pointer-events: all;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.cr-game-lock-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-lock-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.auth-card-shake {
  animation: authShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authShake {
  10%, 90% { transform: translate3d(-2px, 0, 0) scale(1); }
  20%, 80% { transform: translate3d(4px, 0, 0) scale(1); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0) scale(1); }
  40%, 60% { transform: translate3d(6px, 0, 0) scale(1); }
}

/* 11. Floating Top Guest Bar (Visible when not logged in) */
.cr-top-guest-bar {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cr-guest-btn-login {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.cr-guest-btn-login:hover {
  background: #1e3a8a;
  color: #fff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.cr-guest-btn-reg {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.cr-guest-btn-reg:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}


