/*
 * SafeShare theme for the access service server pages.
 *
 * Version 1.0 (2026-10-09). Design: docs/superpowers/specs/2026-10-09-server-pages-theme-design.md
 *
 * What this is: the stylesheet that the access service's server-rendered HTML
 * pages link, last in their stylesheet order, as {webappUrl}/themes/themes.css.
 * The Angular build copies this file to /themes/themes.css unchanged (see the
 * assets entry in angular.json); it is served as written, with no preprocessor.
 *
 * Which pages load it: the login page (/login), the single sign-on picker
 * (/sso, with and without ?useremail=), the MFA second factor (/login/mfa),
 * the welcome page (/welcome), the reset-password page
 * (/account/resetPassword), the OAuth consent page and the OAuth error page
 * (/api/oauth/authorize), and the themed error pages (400, 403, 404, 405, 500,
 * /error/saml, /error/ssoApprovalRequired). The incompatible-browser page
 * links only the legacy main.css today; its section below applies only if
 * that page ever links this file.
 *
 * The markup of those pages is pinned byte for byte by the access service's
 * parity suites and cannot change. Every visual change here is CSS over the
 * existing selectors. The target look is the web app's own login screen
 * (src/app/features/auth/login.component.ts): light only, a near-black frame,
 * a rounded panel, a dark brand header with a dotted green mesh and a white
 * wordmark, and a white main area. Colors are literal, as they are in that
 * component, because these pages carry no theme class.
 *
 * Two kinds of !important appear below, and only these two:
 *   1. border-radius: the legacy main.css sets
 *      "* { border-radius: 1px !important }", so every rounded corner here
 *      has to be !important as well to take effect.
 *   2. Properties that the page markup sets in an inline style="" attribute,
 *      or that main.css forces with !important; each is marked where it occurs.
 *
 * Section order: fonts and base, frame and panel, brand header, main area and
 * content column, typography, form controls, buttons, links, alerts, the
 * sign-in family details (language menu, divider, forgot-password panel,
 * footer), single sign-on picker, OAuth consent and error, themed error
 * pages, incompatible browser, narrow screens.
 *
 * Change log
 *   1.0 (2026-10-09): created.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* ------------------------------------------------------------------------
 * Base. The themed error pages load no Bootstrap, so the reset is repeated
 * here; on the other pages it matches what Bootstrap already does.
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Bootstrap 3 (inside main.css) sets html { font-size: 10px }; the rem values
   below are the web app's, which assume the 16px browser default. */
html {
  min-height: 100%;
  font-size: 16px;
}

/* ------------------------------------------------------------------------
 * Frame and panel.
 * ---------------------------------------------------------------------- */

body,
body.neutral-light-color {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 8px;
  background: #181818;
  /* main.css sets .neutral-light-color { background-color: #F5F6F6 !important }
     on the login page body. */
  background-color: #181818 !important;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
}

.signin-flow-page .login-wrapper,
.login-wrapper {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: calc(100vh - 16px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  border-radius: 12px !important;
  /* The login component's panel is #050505, but its header and white main
     area cover it completely. Here the blocks of the main area can end on a
     fractional pixel, and a near-black panel showed through those seams as a
     hairline, so the panel itself is white under the brand header. */
  background: #ffffff;
  text-align: initial;
}

/* ------------------------------------------------------------------------
 * Brand header. The logo container is the header rather than the whole
 * .swap-container, because the login and SSO pages keep their alerts in the
 * .swap-container too; those alerts belong in the white area. On the
 * welcome, reset-password and OAuth pages the header is the bare <div> that
 * holds the logo (the only child of the panel without an id or a class).
 * ---------------------------------------------------------------------- */

.swap-container,
.signin-flow-page .swap-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

#login-logo-container,
.signin-flow-page .loginMargin#login-logo-container,
.login-wrapper > div:not([id]):not([class]),
body > nav.navbar,
body > .navbar.navbar-inverse {
  position: relative;
  display: flex;
  flex-shrink: 0;
  order: -1;
  height: 62px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-bottom: 1px solid #1e1e1e;
  background: #080808;
}

/* Decorative dotted mesh behind the wordmark, as in the web app's login. */
#login-logo-container::before,
.login-wrapper > div:not([id]):not([class])::before,
body > nav.navbar::before,
body > .navbar.navbar-inverse::before {
  content: '';
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 520px;
  transform: translateX(-50%);
  opacity: 0.7;
  background-image: radial-gradient(rgba(8, 160, 70, 0.55) 1px, transparent 1px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 28%, black 72%, transparent);
  mask-image: linear-gradient(to right, transparent, black 28%, black 72%, transparent);
}

/* The wordmark. No themes.json is served, so the loader falls back to the
   access service's purple login-logo.png, which is turned white here. */
#login-logo,
.signin-flow-page .login-wrapper .logo,
.login-wrapper img.logo {
  position: relative;
  left: 0;
  z-index: 1;
  display: block;
  height: 27px;
  width: auto;
  max-width: 100%;
  margin: 0;
  filter: brightness(0) invert(1);
}

/* An <img> without a src (before the logo loader runs) would show a broken
   image frame; keep the header empty until the source arrives. */
#login-logo:not([src]) {
  visibility: hidden;
}

/* The error pages wrap the logo in Bootstrap navbar markup. */
body > nav.navbar .container-fluid,
body > nav.navbar .navbar-header,
body > .navbar.navbar-inverse .navbar-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body > nav.navbar .navbar-brand,
body > .navbar.navbar-inverse .navbar-brand {
  display: flex;
  align-items: center;
  float: none;
  height: auto;
  margin: 0;
  padding: 0;
}

/* The themed error pages never set covata.accessServiceUrl, so without a
   themes.json their logo loader asks for "undefined/static/resources/image/
   login-logo.png" and the <img> stays broken; the incompatible-browser page
   names a cocoondata-logo.png that the access service does not serve. On
   those two pages the wordmark is drawn by the brand link instead, from the
   same fallback image the other pages load, and the <img> is hidden. The
   root-relative URL resolves against this stylesheet's origin, the web app,
   which proxies /static/ to the access service. */
body > nav.navbar .navbar-brand,
body > .navbar.navbar-inverse .navbar-brand {
  width: 161px;
  height: 27px;
  background: url('/static/resources/image/login-logo.png') center / contain no-repeat;
  filter: brightness(0) invert(1);
}

body > nav.navbar .navbar-brand #login-logo,
body > .navbar.navbar-inverse .navbar-brand img {
  display: none;
}

/* ------------------------------------------------------------------------
 * Main area and content column.
 * ---------------------------------------------------------------------- */

#sign-in-container,
.login-wrapper > .central-container,
.login-wrapper > #authorize-box,
.login-wrapper > #oauth-error,
body > #view-container,
body > .noti.container {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  /* #sign-in-container carries style="padding-bottom: 20px" on the login
     and welcome pages. */
  padding: 2rem 1.5rem !important;
  background: #ffffff;
  text-align: initial;
}

#sign-in-container .container,
#sign-in-container .row,
#sign-in-container [class*='col-'],
.login-wrapper > .central-container .row,
.login-wrapper > .central-container [class*='col-'],
.login-wrapper > #authorize-box > [class*='col-'],
.login-wrapper > #oauth-error > .alert,
body > #view-container > .alert,
body > .noti.container > .alert {
  float: none;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Alerts that sit directly in the content column keep their inner padding. */
.login-wrapper > #oauth-error > .alert,
body > .noti.container > .alert {
  padding: 0.75rem;
}

/* The reset-password box carries style="max-width: 600px". */
#sign-in-container #change-password-box {
  max-width: 28rem !important;
}

#sign-in-container .row::before,
#sign-in-container .row::after {
  display: none;
}

/* The "back" links of the SSO picker sit in a .text-left column; centered
   under the button, at the size of the other secondary links. */
.login-wrapper > .central-container .text-left {
  text-align: center;
}

.login-wrapper > .central-container a:not(.btn) {
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------------
 * Typography.
 * ---------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    Poppins,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: #111827;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h5 {
  font-size: 1.125rem;
  font-weight: 700;
}

.help-block,
.help-block p,
#opt-sent-box p,
#authtitle {
  color: #4b5563;
  font-size: 0.875rem;
}

/* The EULA paragraph on the login page carries style="font-size: 18px". */
#login-box p[style] {
  margin: 1.5rem 0 0;
  color: #4b5563;
  font-size: 0.875rem !important;
  text-align: center;
}

/* ------------------------------------------------------------------------
 * Form controls.
 * ---------------------------------------------------------------------- */

.signin-flow-page .login-input,
.login-wrapper .form-control,
.login-wrapper .login-input,
.login-wrapper .form-control.input-lg {
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0 0 1rem;
  border: 1px solid #252525;
  border-radius: 0.5rem !important;
  background: #ffffff;
  color: #111827;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: normal;
  box-shadow: none;
  outline: none;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.login-wrapper .form-control::placeholder {
  color: #6f6f6f;
  opacity: 1;
}

/* main.css forces the focus state with
   .form-control:focus { border: 1px solid #cccccc !important; box-shadow: none !important }. */
.login-wrapper .form-control:focus,
.login-wrapper .login-input:focus {
  border-color: #08a046 !important;
  box-shadow: 0 0 0 2px rgba(8, 160, 70, 0.2) !important;
}

.login-wrapper .form-group {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------------
 * Buttons.
 * ---------------------------------------------------------------------- */

.signin-flow-page .login-button,
.signin-flow-page .sign-on-button,
.login-wrapper .login-button,
.login-wrapper .sign-on-button,
.login-wrapper .idp-login-button,
.login-wrapper .btn-primary,
.login-wrapper .btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.75rem;
  margin: 0 0 0.75rem;
  padding: 0 1rem;
  border: 1px solid #08a046;
  border-radius: 0.375rem !important;
  background: #08a046;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
  transition: background-color 0.15s ease-in-out;
}

.login-wrapper .login-button:hover,
.login-wrapper .login-button:focus,
.login-wrapper .sign-on-button:hover,
.login-wrapper .sign-on-button:focus,
.login-wrapper .idp-login-button:hover,
.login-wrapper .idp-login-button:focus,
.login-wrapper .btn-primary:hover,
.login-wrapper .btn-primary:focus,
.login-wrapper .btn-success:hover,
.login-wrapper .btn-success:focus {
  border-color: color-mix(in srgb, #08a046, black 8%);
  background: color-mix(in srgb, #08a046, black 8%);
  color: #ffffff;
  text-decoration: none;
}

.login-wrapper .login-button:active,
.login-wrapper .sign-on-button:active,
.login-wrapper .idp-login-button:active,
.login-wrapper .btn-primary:active,
.login-wrapper .btn-success:active {
  border-color: color-mix(in srgb, #08a046, black 14%);
  background: color-mix(in srgb, #08a046, black 14%);
  box-shadow: none;
}

.login-wrapper .login-button:focus-visible,
.login-wrapper .sign-on-button:focus-visible,
.login-wrapper .idp-login-button:focus-visible,
.login-wrapper .btn:focus-visible {
  outline: 2px solid #08a046;
  outline-offset: 2px;
}

#sign-in-button {
  margin-top: 0.5rem;
}

.login-wrapper .btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem !important;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none;
}

.login-wrapper .btn-default:hover,
.login-wrapper .btn-default:focus {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #111827;
}

/* ------------------------------------------------------------------------
 * Links.
 * ---------------------------------------------------------------------- */

a,
.login-wrapper .toggle,
.login-wrapper a.forgot {
  color: #08a046;
  font-weight: 500;
  text-decoration: none;
}

a:hover,
a:focus,
.login-wrapper .toggle:hover {
  color: #12c65b;
  text-decoration: none;
}

/* The forgot-password link on the login page wraps its text in
   <b style="font-size: 18px">. */
.login-wrapper .toggle b[style] {
  font-size: 0.875rem !important;
  font-weight: 600;
}

/* ------------------------------------------------------------------------
 * Alerts.
 * ---------------------------------------------------------------------- */

.alert,
.signin-flow-page .alert {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-radius: 6px !important;
  font-size: 0.875rem;
  text-align: left;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.alert-info {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.alert h1 {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.alert p {
  margin: 0;
}

.alert .close {
  float: right;
  margin-left: 0.5rem;
  color: inherit;
  opacity: 0.7;
  text-shadow: none;
}

div.loginError {
  width: auto;
}

/* The alert block of the login, SSO and reset-password pages. main.css
   positions it absolutely over the page; here it sits in the white area under
   the brand header. Its display stays under the page scripts' control (the
   inline display: none is left alone). The markup sets inline margins on all
   three pages and an inline width of 60% on the reset-password page. */
div#alert-container,
.swap-container #alert-container {
  position: static;
  float: none;
  order: 1;
  width: 100% !important;
  max-width: calc(28rem + 3rem);
  min-height: 0;
  margin: 0 auto !important;
  padding: 0 1.5rem;
  background: #ffffff;
  text-align: left;
}

/* The login script shows the block on every load, alerts or not, so the
   spacing sits on the alerts themselves and an empty block takes no room. */
div#alert-container .alert,
.swap-container #alert-container .alert {
  margin: 1.5rem 0 0;
}

div#alert-container::before,
div#alert-container::after {
  display: none;
}

.login-wrapper > #alert-container {
  order: 0;
}

/* The cookie warning carries style="display:none; width: 50%; ...". */
.login-wrapper > #no-cookies {
  width: auto !important;
  max-width: 28rem;
  margin: 0 auto 1.5rem !important;
}

/* ------------------------------------------------------------------------
 * Sign-in family details.
 * ---------------------------------------------------------------------- */

/* Language menu (login page). Its button carries
   style="border:none; background: none;", which would leave dark text on the
   dark brand header. */
#language-dropdown {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

#language-dropdown > .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid #d1d5db !important;
  border-radius: 0.375rem !important;
  background: #ffffff !important;
  color: #111827;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: none;
}

/* main.css gives every .text element "width: 1%; padding: 0 10px" (meant for
   the "or" divider), which makes the language name overrun the caret. */
#language-dropdown .text {
  width: auto;
  padding: 0;
  white-space: nowrap;
}

#language-dropdown > .btn:hover,
#language-dropdown > .btn:focus {
  background: #f3f4f6 !important;
}

#language-dropdown .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 10rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

#language-dropdown .language-selector li {
  white-space: nowrap;
}

#language-dropdown .language-selector li:hover {
  background-color: #f3f4f6;
}

/* Forgot-password link row and the "or" divider. */
#login-box .row.flex-center {
  display: flex;
  justify-content: center;
}

#login-box .row.flex-center > [class*='col-'] {
  padding: 0;
  text-align: center;
}

#login-box .p-2 {
  padding: 0;
}

#login-box .flex.flex-col {
  display: block;
}

.login-wrapper .group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0.75rem 0;
  padding: 0;
  color: #6b7280;
  font-size: 0.75rem;
}

.login-wrapper .group .item.line {
  position: static;
  flex: 1;
  width: auto;
  border-bottom: 1px solid #e5e7eb;
}

.login-wrapper .group .item.text {
  width: auto;
  padding: 0;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The government cloud banner (only on deployments that enable it). */
#login-box .login-banner {
  float: none;
  width: 100%;
  margin: 1rem 0 0;
  padding: 0.75rem;
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 6px !important;
  background: rgba(14, 165, 233, 0.12);
  opacity: 1;
  font-size: 0.875rem;
}

/* Forgot-password panel (hidden until the link toggles it). */
#no-password-box {
  float: none;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

#no-password-box h5 {
  margin: 0 0 0.5rem;
}

#no-password-box .help-block {
  margin: 0 0 1rem;
}

#no-password-box .form-inline {
  /* The markup sets style="text-align: left" here; centered is the target. */
  text-align: center !important;
}

.login-wrapper .cancel-text,
.signin-flow-page .cancel-text {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  text-align: center;
}

/* Welcome page message. */
#opt-sent-box {
  text-align: center;
}

#opt-sent-box p {
  margin: 0;
}

#opt-sent-box br {
  display: block;
  content: '';
  margin-top: 0.75rem;
}

/* Reset-password page. The rule hints carry inline font size and color. */
#change-password-box .passHover {
  margin: 0 0 0.5rem;
  color: #4b5563 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

#change-password-box .has-error .help-block {
  color: #4b5563;
}

#change-password-box .btn-primary {
  margin-top: 0.5rem;
}

/* Footer. Inside the panel on the SSO, welcome, reset-password and OAuth
   error pages; below the panel, on the frame, on the login and consent
   pages; the last block of the panel on the themed error pages. */
#footer,
.login-wrapper #footer {
  position: static;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 1rem;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  text-align: center;
}

.login-wrapper #footer,
body > #view-container ~ #footer {
  background: #ffffff;
  color: #6b7280;
}

#footer p {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 0.75rem;
  text-align: center;
}

#footer a {
  font-weight: 500;
}

#footer-logo,
#footer #footer-logo {
  display: none;
}

.push {
  display: none;
}

/* ------------------------------------------------------------------------
 * Single sign-on picker (/sso).
 * ---------------------------------------------------------------------- */

#user-idp-box .idp-login-button,
.login-wrapper a.idp-login-button {
  margin: 0 0 0.75rem;
}

#user-idp-box .idp-login-button .pull-left {
  display: inline-flex;
  float: none;
}

#user-idp-box .idp-login-button img {
  display: block;
  height: 1.5rem;
  width: auto;
}

/* The provider label carries style="margin-left: -100px". */
#user-idp-box .idp-login-button span[style] {
  margin-left: 0 !important;
}

#sso-login-box .row + .row,
#user-idp-box .row:last-child {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------------
 * OAuth consent and OAuth error.
 * ---------------------------------------------------------------------- */

.signin-flow-page .login-wrapper #authorize-box.box,
.login-wrapper > #authorize-box {
  width: 100%;
  margin: 0;
  box-shadow: none;
  border-radius: 0 !important;
  background: #ffffff;
}

.signin-flow-page .login-wrapper .box .title,
#authorize-box .title {
  margin: 0 0 1.5rem;
  color: #111827;
  font-family:
    Poppins,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

#authorize-box .button-container {
  display: flex;
  gap: 0.75rem;
}

.signin-flow-page .login-wrapper .button-container form,
#authorize-box .button-container form {
  display: block;
  flex: 1;
}

.signin-flow-page .login-wrapper .box .oauth,
#authorize-box .oauth {
  width: 100%;
  margin: 0;
}

.signin-flow-page #oauth-error,
.login-wrapper > #oauth-error {
  width: 100%;
  margin: 0;
}

/* ------------------------------------------------------------------------
 * Themed error pages (400, 403, 404, 405, 500, /error/saml,
 * /error/ssoApprovalRequired). They have no panel element, so the navbar,
 * the main container and the footer each take one part of it.
 * ---------------------------------------------------------------------- */

body > nav.navbar,
body > .navbar.navbar-inverse {
  /* Relative, not fixed (Bootstrap's navbar-fixed-top), so the header sits in
     the flow and clips its dotted mesh. */
  position: relative;
  top: auto;
  width: 100%;
  border: 1px solid #1f1f1f;
  border-bottom-color: #1e1e1e;
  border-radius: 12px 12px 0 0 !important;
}

body > #view-container,
body > .noti.container {
  border-left: 1px solid #1f1f1f;
  border-right: 1px solid #1f1f1f;
}

body > #view-container ~ #footer,
body > .noti.container:last-of-type {
  border: 1px solid #1f1f1f;
  border-top: 0;
  border-radius: 0 0 12px 12px !important;
}

body > #view-container > .alert {
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5563;
  text-align: center;
}

body > #view-container > .alert h2 {
  margin: 0 0 0.75rem;
  color: #111827;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body > #view-container > .alert p {
  margin: 0 0 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------------
 * Incompatible browser.
 * ---------------------------------------------------------------------- */

body > .noti.container {
  text-align: center;
}

body > .noti.container .logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 40rem;
  margin: 1rem auto 0;
}

body > .noti.container .logos > [class*='col-'] {
  flex: 0 1 8.5rem;
  float: none;
  width: auto;
  padding: 0;
}

body > .noti.container .logos img {
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.5rem;
}

body > .noti.container .logos h3 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
}

body > .noti.container .logos .vendor {
  color: #6b7280;
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------------
 * Narrow screens. main.css switches the sign-in layout below 769px.
 * ---------------------------------------------------------------------- */

/* On a phone the language name would run into the centered wordmark, so the
   menu button keeps only its globe icon and caret. */
@media (max-width: 480px) {
  #language-dropdown #selected-language {
    display: none;
  }
}

@media (max-width: 768px) {
  .signin-flow-page .login-wrapper {
    margin-top: 0;
  }

  .signin-flow-page .loginMargin#login-logo-container {
    margin: 0;
  }

  .signin-flow-page .login-wrapper .logo {
    margin: 0;
  }

  .swap-container #alert-container .alert {
    margin: 1.5rem 0 0;
  }

  #sign-in-container,
  .login-wrapper > .central-container,
  .login-wrapper > #authorize-box,
  .login-wrapper > #oauth-error,
  body > #view-container,
  body > .noti.container {
    justify-content: flex-start;
    padding: 2rem 1rem !important;
  }
}
