/* Forgot-password auth surface: aligned with the current QIENET login/register layout. */
.login-page {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 44px 20px 64px;
  box-sizing: border-box;
}

.login-container {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
  color: #202731;
  background: #fff;
  border: 1px solid #e0e4ec;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(40,83,124,.06);
}

.login-container h1 {
  margin: 0 0 12px;
  color: #20232a;
  text-align: center;
  font-size: 28px;
  font-weight: 650;
}

.qn-auth-recovery-note {
  margin: 0 0 22px;
  color: #66717e;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
}

.login-container label {
  display: block;
  margin: 12px 0 6px;
  color: #4b5260;
  font-size: 14px;
  font-weight: 600;
}

.login-container input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  box-sizing: border-box;
  color: #202731;
  background: #fff;
  border: 1px solid #ccd4e0;
  border-radius: 11px;
  outline: 0;
}

.login-container input[type="email"]:focus {
  border-color: #3779f3;
  box-shadow: 0 0 0 3px rgba(55,121,243,.12);
}

.qn-auth-recovery-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  padding: 10px 14px;
  color: #fff !important;
  background: #3779f3 !important;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
}

.qn-auth-recovery-submit:hover {
  background: #2869dc !important;
}

.login-container .message {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.login-container .message.success {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.login-container .message.error {
  color: #b42318;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.qn-auth-recovery-back {
  margin-top: 18px;
  text-align: center;
}

.qn-auth-recovery-back a {
  color: #176dde;
  text-decoration: none;
}

.qn-auth-recovery-back a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .login-container {
  color: #e8eef5;
  background: #171e27;
  border-color: #303b48;
  box-shadow: none;
}

html[data-theme="dark"] .login-container h1,
html[data-theme="dark"] .login-container label {
  color: #f4f7fb;
}

html[data-theme="dark"] .qn-auth-recovery-note {
  color: #aab6c5;
}

html[data-theme="dark"] .login-container input[type="email"] {
  color: #fff;
  background: #10161d;
  border-color: #46515f;
}

html[data-theme="dark"] .login-container input[type="email"]::placeholder {
  color: #8492a3;
}

html[data-theme="dark"] .qn-auth-recovery-back a {
  color: #8bbcff;
}

html[data-theme="dark"] .login-container .message.error {
  color: #ffb7c0;
  background: #3a1e24;
  border-color: #63303a;
}

html[data-theme="dark"] .login-container .message.success {
  color: #8fe0a4;
  background: rgba(21,101,52,.24);
  border-color: rgba(143,224,164,.28);
}

@media (max-width: 760px) {
  .login-page {
    padding: 24px 14px 48px;
  }

  .login-container {
    padding: 22px 18px;
  }

  .login-container h1 {
    font-size: 24px;
  }
}
