/* -------//------- GLOBAL VARIABLES -------//------- */

:root {
  --nikon-black: #0a0203;
  --nikon-yellow: #ffdd00;
  --nikon-light-yellow: #ffeb68;
  --nikon-dark-yellow: #eccc00;
  --nikon-off-white: #f1f2f2;
  --nikon-mid-grey: #dcdcdc;
  --nikon-grey: #c8c8c8;
  --nikon-dark-grey: #939598;
  --nikon-error-red: #ff0020;
  --nikon-success-green: #65bf73;
  --radius: 10px;
  --radius-sm: 5px;
}

/* -------//------- DEFAULTS -------//------- */

* {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 300;
}

body {
  margin: 0px;
  background-color: var(--nikon-black);
}

ul {
  list-style-type: none;
  padding: 0px;
  margin: 0px;
}

/* -------//------- FONTS -------//------- */

h1 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 300;
  text-align: center;
}

h2 {
  font-size: 18px;
  line-height: 22px;
  font-weight: 300;
  margin-bottom: 20px;
}

p {
  font-size: 16px;
  line-height: 24px;
}

button:not(.accountButton) {
  line-height: 21px;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nikon-black);
}

label,
.error {
  font-size: 14px;
  line-height: 24px;
}

/* Bold Links */

u {
  font-weight: 400;
}

@media (min-width: 1440px) {
  h1 {
    font-size: 38px;
    line-height: 50px;
  }
}

/* -------//------- HYPERLINKS -------//------- */

a:not(#header-logo):not(#forgotPassword) {
  color: var(--nikon-black);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

#forgotPassword {
	display: block;
  margin-bottom: 5px;
	color: var(--nikon-black);
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
}

#createAccount {
  margin-left: 10px;
}

/* -------//------- HEADER -------//------- */

header {
  display: flex;
  padding: 16px 30px;
  width: auto;
  border-bottom: 1px solid var(--nikon-dark-grey);
}

header a {
  display: flex;
}

main {
  padding: 30px;
  display: flex;
  justify-content: center;
}

/* -------//------- LAYOUT -------//------- */

#layout {
  border-radius: var(--radius);
  color: var(--nikon-black);
  background-color: #FFF;
  max-width: 675px;
  padding: 40px 20px;
	width: 100%;
}

@media (min-width: 1440px) {
  #layout {
    min-width: 675px;
    padding: 50px;
  }
}

#layout #api {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* not required if we aren't switching the order */

/* .social {
  margin-bottom: 30px;
} */

.logo {
  width: 68px;
  height: 68px;
}

#logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.buttons + .intro {
  display: none;
}

/* -------//------- OR DIVIDER STYLES -------//------- */

.divider {
  width: 100%;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.entry + .divider {
  display: none;
}

.divider h2 {
  text-align: center;
  color: var(--nikon-dark-grey);
  text-transform: lowercase;
}

.divider::before {
  content: '';
  display: flex;
  height: 1px;
  width: 100%;
  background-color: var(--nikon-grey);
}

.divider::after {
  content: '';
  display: flex;
  height: 100%;
  height: 1px;
  width: 100%;
  background-color: var(--nikon-grey);
}

/* -------//------- FORM CONTROL STYLES -------//------- */

/* Input Element with Labels etc. */

.entry-item {
  display: flex;
  flex-direction: column;
}

.attrEntry {
  display: flex;
  flex-direction: column;
  justify-items: stretch;
  align-items: stretch;
}

/* Inputs */

input {
  display: inline-block;
  padding: 14px 20px;
  background-color: var(--nikon-off-white);
  border-radius: var(--radius-sm);
  border: none;
  flex-grow: 0;
  margin-bottom: 20px;
}

label {
  margin-bottom: 5px;
  display: inline-block;
}
/* Disabled States */

input:disabled {
  border: 1px solid var(--nikon-grey);
}

label:has(~ input:disabled) {
  color: var(--nikon-dark-grey);
}

::placeholder,
::-ms-input-placeholder {
  color: var(--nikon-dark-grey);
}

/* Invalid States */

input:invalid {
  border: 1px solid var(--nikon-error-red);
}

label:has(~ input:invalid) {
  color: var(--nikon-error-red);
}

/* Error Messages */

.error {
  color: var(--nikon-error-red);
  margin-bottom: 5px;
}

.error:empty,
label:empty {
  display: none;
}

/* Success Messages */

.verificationSuccessText {
  color: var(--nikon-success-green);
  margin-bottom: 5px;
}

.helpLink {
  display: none;
}

form:invalid #continue {
  color: var(--nikon-dark-grey);
  background-color: var(--nikon-mid-grey);
}

.verifying-modal {
  margin-top: 30px;
}

.surname_li {
  margin-bottom: 20px;
}

/* -------//------- CTA BUTTONS -------//------- */

.buttons {
  display: flex;
  gap: 20px;
}

:not(.entry) > .working + .buttons {
  margin-bottom: 30px;
}

.buttons button {
  display: inline-block;
  padding: 4px 16px;
	border: none;
  background-color: var(--nikon-yellow);
  border-radius: 9999px;
  cursor: pointer;
}

.buttons button[aria-disabled='true'] {
  color: var(--nikon-dark-grey);
  background-color: var(--nikon-mid-grey);
  pointer-events: none;
}

.buttons button:hover {
  background-color: var(--nikon-light-yellow);
}

.buttons button:active,
.buttons button:focus {
  background-color: var(--nikon-dark-yellow);
}

#next,
.sendCode,
.verifyCode,
.sendNewCode,
.changeClaims {
  margin-bottom: 20px;
  margin-top: 20px;
}

.buttons #cancel,
.buttons .sendNewCode {
  order: -1;
  background-color: transparent;
  border: 1px solid var(--nikon-yellow);
}

.buttons #cancel:hover,
.buttons .sendNewCode:hover {
  background-color: var(--nikon-light-yellow);
  border: 1px solid var(--nikon-light-yellow);
}

.buttons #cancel:active,
.buttons #cancel:focus,
.buttons .sendNewCode:active,
.buttons .sendNewCode:focus {
  background-color: var(--nikon-dark-yellow);
  border: 1px solid var(--nikon-dark-yellow);
}

/* -------//------- SSO PROVIDERS -------//------- */

#FacebookExchange,
#GoogleExchange,
#TwitterExchange {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--nikon-mid-grey);
  background-color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  margin-bottom: 20px;
}

#FacebookExchange::before,
#GoogleExchange::before,
#TwitterExchange::before {
  content: '';
  position: absolute;
  display: block;
  z-index: 100000;
  height: 20px;
  width: 20px;
  left: 20px;
  top: 18px;
}

#FacebookExchange::before {
  background: url('https://nikonb2cdev.blob.core.windows.net/root/Facebook_logo.svg');
  background-size: 20px 20px;
}

#GoogleExchange::before {
  background: url('https://nikonb2cdev.blob.core.windows.net/root/Google_logo.svg');
  background-size: 20px 20px;
}

#TwitterExchange::before {
  background: url('https://nikonb2cdev.blob.core.windows.net/root/Twitter_logo.svg');
  background-size: 20px 20px;
}

@media (min-width: 1440px) {
  #FacebookExchange,
  #GoogleExchange,
  #TwitterExchange {
    line-height: 24px;
  }

  #FacebookExchange:before,
  #GoogleExchange:before,
  #TwitterExchange:before {
    top: 20px;
  }
}
