/* Colours are CSS variables set from the module settings (Login & Checkout tab):
   --wa-primary (buttons, links, icon), --wa-accent (New customer card). Defaults below.
   Login page: login first, registration below, in the store's blue / yellow theme.
   Loaded only on the Login page, only while "Modern login page" is enabled in the
   module. Everything is scoped to body.account-login, so no other page is touched.
   Defaults = the store theme: blue #1450b0, yellow #fcd000; text #646464 / #202020. */

/* ── one centered column, the account sidebar is not needed for a visitor who is not logged in ── */
body.account-login #content {
  float: none;
  width: 100%;
  max-width: 600px;
  margin: 10px auto 40px;
}

body.account-login aside.content-aside,
body.account-login #column-right,
body.account-login #column-left {
  display: none;
}

body.account-login #content > .row {
  display: flex;
  flex-direction: column;
  margin-left: 0;
  margin-right: 0;
}

body.account-login #content > .row::before,
body.account-login #content > .row::after {
  display: none;
}

/* login first, registration below */
body.account-login #content > .row > .col-sm-6 {
  float: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.account-login #content > .row > .col-sm-6:nth-child(2) { order: 1; }
body.account-login #content > .row > .col-sm-6:nth-child(1) { order: 2; margin-top: 22px; }

/* ── the two cards ── */
body.account-login #content .well {
  position: relative;
  float: none;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 30px 32px 28px;
  background: #fff;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  overflow: hidden;
}

body.account-login #content .well::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--wa-primary, #1450b0);
}

/* the New customer card carries the theme's yellow */
body.account-login #content > .row > .col-sm-6:nth-child(1) .well::before {
  background: var(--wa-accent, #fcd000);
}

/* headings with a round icon */
body.account-login #content .well h2 {
  display: flex;
  align-items: center;
  margin: 0 0 6px;
  color: #202020;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

body.account-login #content .well h2::before {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--wa-primary, #1450b0);
  color: var(--wa-primary-ink, #fff);
  font-family: FontAwesome;
  font-size: 20px;
  font-weight: normal;
  line-height: 44px;
  text-align: center;
  content: "\f007";
}

body.account-login #content > .row > .col-sm-6:nth-child(1) .well h2::before {
  background: var(--wa-accent, #fcd000);
  color: var(--wa-accent-ink, #202020);
  content: "\f234";
}

body.account-login #content .well p {
  margin: 0 0 14px;
  color: #646464;
  font-size: 14px;
  line-height: 1.55;
}

body.account-login #content .well p strong {
  color: #646464;
  font-weight: 400;
}

/* register card: the bold line is a sub-heading */
body.account-login #content > .row > .col-sm-6:nth-child(1) .well p strong {
  color: #202020;
  font-size: 15px;
  font-weight: 700;
}

/* ── login form ── */
body.account-login #content .well .form-group {
  margin-bottom: 16px;
}

body.account-login #content .well label.control-label {
  margin-bottom: 6px;
  color: #202020;
  font-size: 13px;
  font-weight: 600;
}

body.account-login #content .well .form-control {
  height: 48px;
  padding: 8px 14px;
  background: #f6f8fc;
  border: 1px solid #d6dce8;
  border-radius: 8px;
  box-shadow: none;
  color: #202020;
  font-size: 15px;
}

body.account-login #content .well .form-control:focus {
  background: #fff;
  border-color: var(--wa-primary, #1450b0);
  box-shadow: 0 0 0 3px var(--wa-primary-soft, rgba(20, 80, 176, .15));
  outline: 0;
}

/* the sub-heading already says "e-mail or mobile number" */
body.account-login #content .well .wa-login-hint {
  display: none !important;
}

body.account-login #content .well .form-group a {
  display: inline-block;
  margin-top: 10px;
  color: var(--wa-primary, #1450b0);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

body.account-login #content .well .form-group a:hover {
  text-decoration: underline;
}

/* ── buttons: Login = solid blue, Register = blue outline ── */
body.account-login #content .well input[type="submit"],
body.account-login #content .well a.btn {
  display: block;
  float: none !important;
  width: 100%;
  height: auto;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .15s, color .15s, border-color .15s;
}

body.account-login #content .well input[type="submit"] {
  background: var(--wa-primary, #1450b0) !important;
  border: 2px solid var(--wa-primary, #1450b0) !important;
  color: var(--wa-primary-ink, #fff) !important;
  box-shadow: 0 6px 14px var(--wa-primary-shadow, rgba(20, 80, 176, .25));
}

body.account-login #content .well input[type="submit"]:hover,
body.account-login #content .well input[type="submit"]:focus {
  background: var(--wa-primary-dark, #0f3f8c) !important;
  border-color: var(--wa-primary-dark, #0f3f8c) !important;
}

body.account-login #content .well a.btn {
  margin-top: 6px;
  background: #fff !important;
  border: 2px solid var(--wa-primary, #1450b0) !important;
  color: var(--wa-primary, #1450b0) !important;
  box-shadow: none;
}

body.account-login #content .well a.btn:hover,
body.account-login #content .well a.btn:focus {
  background: var(--wa-primary, #1450b0) !important;
  color: var(--wa-primary-ink, #fff) !important;
}

/* ── small screens ── */
@media (max-width: 480px) {
  body.account-login #content .well {
    padding: 24px 18px 22px;
  }

  body.account-login #content .well h2 {
    font-size: 19px;
  }

  body.account-login #content .well h2::before {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    margin-right: 11px;
    font-size: 17px;
    line-height: 38px;
  }
}
