/* === GLOBAL FONT & BACKGROUND === */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f1f4f9;
}

.layout-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
}

/* === LOGO === */
.logo-auth {
  height: 54px;
  margin-bottom: 1.5rem;
}

/* === CARD === */
.ant-card {
  border-radius: 16px !important;
  background-color: #ffffff !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
}

.ant-card-body {
  padding: 2.5rem !important;
}

/* === HEADER === */
.layout-title {
  font-size: 30px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.25rem;
}

.layout-title::before {
  content: "Welcome back";
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.layout-title::after {
  content: "Log in to access your trading account";
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* === REMOVE LABEL ASTERISK === */
.ant-form-item-label > label::before {
  display: none !important;
}

/* === INPUTS === */
.ant-input,
.ant-input-affix-wrapper {
  background-color: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  height: 48px !important;
  font-size: 14px !important;
  color: #111827 !important;
  padding-left: 14px !important;
}

.ant-input::placeholder {
  color: #9ca3af !important;
}

.ant-input-affix-wrapper {
  position: relative !important;
}

.ant-input-suffix {
  padding-right: 10px;
}

/* === EMAIL ICON === */
#Email {
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 2v.01L12 13 4 6.01V6h16zM4 18V8l8 5 8-5v10H4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 16px;
  padding-left: 38px !important;
}


/* === FORGOT PASSWORD STYLING === */
.forgot-password {
  text-align: right;
  margin-top: 4px;
  font-size: 13px;
  margin-bottom: 12px;
}

.forgot-password a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.forgot-password a:hover {
  color: #4338ca;
}

/* === REGISTER UNDER LOGIN BUTTON === */
.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 16px;
}

.auth-buttons span {
  color: #6b7280;
}

.auth-buttons a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.auth-buttons a:hover {
  color: #4338ca;
}


/* === LOGIN BUTTON === */
button.form-button_submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 8px !important;
  border: none !important;
  height: 48px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === INLINE SVG ICON FOR CREATE ACCOUNT BUTTON === */
button.form-button_submit::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

/* === LANGUAGE SELECTOR === */
.lang-switcher {
  font-size: 13px;
  padding: 6px 10px !important;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
}

.lang-switcher .lang img {
  height: 14px;
  margin-right: 4px;
}

/* === THEME SWITCHER === */
.theme-switcher {
  margin-top: 1.4rem;
  gap: 12px;
}

.theme-switcher-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-switcher-item.selected {
  border: 2px solid #6366f1;
}

.theme-switcher-item:hover {
  transform: scale(1.05);
}

/* === SHAKE EFFECT === */
.shake {
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

/* Hide language selector */
.ant-space.css-cgdwkg[style*="margin-top"] {
  display: none !important;
}

/* Hide light/dark mode switcher */
button[aria-label="Switch Theme"], 
button[aria-label="Cookie Preferences"],
button svg[data-icon="bulb"],
button svg[data-icon="moon"] {
  display: none !important;
}

/* Hide the entire language switcher */
.lang-switcher {
  display: none !important;
}

/* Hide the entire theme switcher */
.theme-switcher {
  display: none !important;
}

/* === FIX DOUBLE BOX IN PASSWORD FIELD === */
.ant-input-affix-wrapper {
  padding: 0 !important;
  background-color: #fff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
}

.ant-input-affix-wrapper .ant-input {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  height: 44px !important;
  line-height: 44px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-size: 14px;
}

.ant-input-affix-wrapper .ant-input:focus {
  box-shadow: none !important;
  outline: none !important;
}


/* Match password input background to email input */
.ant-input-affix-wrapper.ant-input-password {
  background-color: #f1f2f4 !important;
}

/* Hide login subtitle on all pages by default */
.layout-subtitle {
  display: none !important;
}

/* Show login subtitle only on login page */
.layout-login .layout-subtitle {
  display: block !important;
}

/* === SYNC LOGIN BUTTON STYLE WITH CREATE ACCOUNT === */
button.form-button_login {
  height: 48px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* === FIX ICON DISPLAY IN CREATE ACCOUNT BUTTON === */
/* === INLINE SVG ICON FOR CREATE ACCOUNT BUTTON === */
button.form-button_submit::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

/* === SIMULATED 4-BOX VERIFICATION FIELD === */
/* === SIMULATED 4-BOX VERIFICATION FIELD (Fixed Background) === */
/* === REFINED SIMULATED 4-BOX VERIFICATION FIELD === */
/* === CLEAN SINGLE FIELD FOR 4-DIGIT VERIFICATION === */
#ConfirmEmailCode {
  width: 240px !important;
  margin: 0 auto !important;
  display: block !important;
  letter-spacing: 20px !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  text-align: center !important;
  background: none !important;
  padding-left: 0 !important;
  caret-color: #6366f1 !important;
  border-radius: 10px !important;
}