/*
 * Shared styles for the Experience Cloud login pages (MNLLogin, NACLogin).
 * Load after the Okta widget and jQuery UI stylesheets so these rules take precedence.
 *
 * Each page sets its brand colours on :root:
 *   --brand-accent         bar across the top of the sign-in card
 *   --brand-button         buttons
 *   --brand-notice-text    iCloud Private Relay notice text
 *   --brand-notice-bg      iCloud Private Relay notice background
 *   --brand-notice-border  iCloud Private Relay notice border
 */

/* page layout */
.container
{
  text-align: center;
  margin-top: 20px;
}

/* Okta sign-in widget */
.infobox-error
{
  font-size: 1rem !important;
}

.okta-sign-in-header
{
  border-radius: 0.75rem 0.75rem 0rem 0rem;
  background: var(--brand-accent) !important;
  height: 0.5rem;
  padding: 0 !important;
  border-bottom: none !important;
}

.o-form-input-error
{
  font-size: 1rem !important;
}

#okta-sign-in
{
  font-size: 2rem;
  margin-top: 20px;
}

#okta-sign-in.auth-container h2, #okta-sign-in.auth-container h3
{
  float: left;
  font-weight: bold;
  font-size: 2rem;
}

.footer-link
{
  float: left;
}

.okta-form-label
{
  text-align: left;
  font-weight: bold;
}

.button
{
  background: var(--brand-button) !important;
  font-weight: bold;
  color: white !important;
}

.register
{
  background-color: #f9fafb !important;
  padding: 20px !important;
  margin: 20px !important;
  width: 80%;
}

/* MFA / authenticator screens: the widget root is 2rem, so bring body text back to 1rem */
#okta-sign-in.auth-container .o-form-explain
{
  font-size: 1rem;
}

.authenticator-label
{
  font-size: 1rem !important;
  float: none !important;
}

.authenticator-description--text
{
  font-size: 1rem !important;
}

.o-form-fieldset-container
{
  font-size: 1rem !important;
}

.phone-authenticator-challenge__link
{
  font-size: 1rem !important;
}

.phone-authenticator-challenge__resend-warning
{
  font-size: 1rem !important;
}

.link-button
{
  color: #fff !important;
}

.social-auth-button
{
  color: #000 !important;
}

/* third-party cookie warning dialog */
#dialog .ui-dialog-content
{
  padding: 20px;
}

.dialog-header
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.dialog-header h2
{
  margin: 0;
  display: inline-block;
  text-align: center;
}

.dialog-body p, .dialog-footer p
{
  font-size: 1rem;
  line-height: 1.5;
  display: block;
  margin: 1em 0;
}

.dialog-footer
{
  text-align: center;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #e9ebee;
}

.ui-dialog-titlebar
{
  display: none !important;
}

.ui-widget
{
  font-family: 'Assistant', sans-serif;
}

.text-link
{
  text-decoration: underline !important;
  color: #2267f7 !important;
}

#dialog .btn
{
  display: inline-block;
  padding: .375rem .75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  border: .0625rem solid transparent;
  border-radius: .25rem;
  cursor: pointer;
  user-select: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

#dialog .btn-primary
{
  color: #fff !important;
  background-color: var(--brand-button);
  border-color: var(--brand-button);
}

/* sandbox username/password form, styled to match the Okta sign-in card */
.sandbox-login
{
  box-sizing: border-box;
  width: 400px;
  max-width: 100%;
  margin: 20px auto 8px;
  text-align: left;
  color: #6e6e78;
  font-family: Inter, montserrat-okta, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: #d8d8d8;
  border-radius: 0.75rem 0.75rem 3px 3px;
  box-shadow: 0 2px 0 rgba(175, 175, 175, 0.12);
  overflow: hidden;
}

.sandbox-login *
{
  box-sizing: border-box;
}

.sandbox-login-header
{
  height: 0.5rem;
  background: var(--brand-accent);
}

.sandbox-login-content
{
  padding: 30px 42px 32px;
}

.sandbox-login h2
{
  margin: 0 0 4px;
  color: #5e5e5e;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
}

.sandbox-login-note
{
  margin: 0 0 20px;
  font-size: 14px;
}

.sandbox-login-field
{
  margin-bottom: 20px;
}

.sandbox-login label
{
  display: block;
  margin-bottom: 8px;
  color: #1d1d21;
  font-size: 14px;
  font-weight: bold;
}

.sandbox-login input[type="text"], .sandbox-login input[type="password"]
{
  display: block;
  width: 100%;
  height: 40px;
  padding: 6px 8px;
  color: #1d1d21;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  border: 1px solid #8c8c96;
  border-radius: 4px;
  outline: none;
}

.sandbox-login input[type="text"]:focus, .sandbox-login input[type="password"]:focus
{
  border-color: var(--brand-button);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-button);
}

.sandbox-login .sandbox-login-button
{
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  background: var(--brand-button);
  border: 1px solid var(--brand-button);
  border-radius: 4px;
  cursor: pointer;
}

.sandbox-login .sandbox-login-button:hover, .sandbox-login .sandbox-login-button:focus
{
  filter: brightness(1.15);
}

.sandbox-login .message
{
  margin: 0 0 20px;
  padding: 10px 12px;
  color: #1d1d21;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e34843;
  border-left-width: 6px;
  border-radius: 4px;
}

.sandbox-login .message img
{
  display: none;
}

.sandbox-login .message td
{
  padding: 0;
  font-size: 14px;
}

.sandbox-login .message ul
{
  margin: 4px 0 0;
  padding-left: 16px;
}

/* iCloud Private Relay notice (shown on iPhone/iPad by SiteLogin.js) */
.ios-relay-notice
{
  display: none;
  max-width: 400px;
  margin: 20px auto 0;
  padding: 12px 16px;
  text-align: left;
  font-family: 'Assistant', Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--brand-notice-text);
  background-color: var(--brand-notice-bg);
  border: 1px solid var(--brand-notice-border);
  border-radius: 0.5rem;
}
