/* =============================================
   wp-login.php — Motion Kit Style
   ============================================= */

/* ---- Background ---- */
body.login {
  background: #f8f9fa;
  background-image:
    linear-gradient(rgba(0,95,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,95,255,.02) 1px, transparent 1px);
  background-size: 50px 50px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ---- Logo ---- */
#login h1 a {
  background-image: url('https://crowdytheme.com/assets/wp-content/uploads/2025/06/wealcode-logo.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 200px;
  height: 60px;
  margin-bottom: 24px;
}

/* ---- Form card ---- */
#loginform,
#lostpasswordform,
#resetpassform {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.03);
  animation: wcsLoginCardIn .6s cubic-bezier(.16,1,.3,1);
}

@keyframes wcsLoginCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Remove default WP border */
#login form {
  border: none;
  box-shadow: none;
}

/* ---- Message box (the blue info box) ---- */
#login .message,
#login .success {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f7ff 100%);
  border: 1px solid rgba(0,95,255,.12);
  border-left: 4px solid #005FFF;
  border-radius: 12px;
  color: #1e40af;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,95,255,.05);
  animation: wcsLoginCardIn .5s cubic-bezier(.16,1,.3,1) .1s both;
}

/* ---- Error box ---- */
#login_error {
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid rgba(239,68,68,.15);
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(239,68,68,.06);
  animation: wcsLoginCardIn .4s cubic-bezier(.16,1,.3,1);
}
#login_error a {
  color: #dc2626;
  font-weight: 600;
}

/* ---- Labels ---- */
#loginform label,
#lostpasswordform label,
#resetpassform label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #27272A;
  margin-bottom: 6px;
}

/* ---- Inputs ---- */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#resetpassform input[type="text"],
#resetpassform input[type="password"],
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #F0F3F6;
  border: 1.5px solid transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #27272A;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  box-sizing: border-box;
  height: 44px;
}
#loginform input:focus,
#lostpasswordform input:focus,
#resetpassform input:focus {
  outline: none;
  background: #fff;
  border-color: #005FFF;
  box-shadow: 0 0 0 3px rgba(0,95,255,.1);
  transform: translateY(-1px);
}

/* ---- Submit button ---- */
#wp-submit,
.wp-core-ui .button-primary {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: #005FFF;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  display: block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,95,255,.25);
  transition:
    transform .35s cubic-bezier(.16,1,.3,1),
    box-shadow .35s,
    background .2s;
  height: auto;
  text-shadow: none;
}
#wp-submit:hover,
.wp-core-ui .button-primary:hover {
  background: #0050DD;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,95,255,.35), 0 0 0 4px rgba(0,95,255,.08);
  color: #fff;
}
#wp-submit:active,
.wp-core-ui .button-primary:active {
  transform: translateY(0);
}
#wp-submit:focus,
.wp-core-ui .button-primary:focus {
  box-shadow: 0 4px 15px rgba(0,95,255,.25), 0 0 0 3px rgba(0,95,255,.15);
  outline: none;
}

/* ---- Links below form ---- */
#login #nav,
#login #backtoblog {
  text-align: center;
  margin-top: 16px;
  padding: 0;
}
#login #nav a,
#login #backtoblog a {
  color: #71717A;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
#login #nav a:hover,
#login #backtoblog a:hover {
  color: #005FFF;
}

/* ---- Privacy policy link ---- */
.privacy-policy-page-link {
  margin-top: 16px;
}
.privacy-policy-page-link a {
  color: #A1A1AA;
  font-size: 13px;
}

/* ---- Hide the language switcher if present ---- */
.language-switcher {
  margin-top: 16px;
}

/* ---- Small screens ---- */
@media (max-width: 480px) {
  #login {
    width: 90%;
    padding: 0 5%;
  }
  #loginform,
  #lostpasswordform,
  #resetpassform {
    padding: 28px 20px 24px;
  }
}
