:root {
  --irc-blue: #093c55;
  --irc-blue-hover: #154b66;
  --irc-orange: #f36c27;
  --irc-orange-hover: #ec804b;
  --auth-input-bg: #f3f3f3;
  --placeholder: #585858;
  /* Desktop nav is sized by its contents, exactly as the live portal is:
     8px navbar padding + 10px .navbar-icon padding + 80px logo + 10px + 8px.
     A shorter fixed value clips the logo and lets the Login tab hang below
     the bar. Measured against the live page: nav 116, logo box y=8 h=100,
     Login tab y=28 h=60. */
  --nav-height: 116px;
  /* The bar is fixed and overlaps the top of the backsplash, so content
     offset stays at 76 and is deliberately NOT --nav-height. Matches live. */
  --content-offset: 76px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #212529;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.IRC-dark-background {
  background-color: var(--irc-blue);
  color: #fff;
}

#non-auth-nav,
#non-auth-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--irc-blue);
}

#non-auth-nav {
  height: var(--nav-height);
  display: flex;
  align-items: flex-start;
  padding: 8px 16px;
}

.nav-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar-icon {
  grid-column: 1 / 2;
  padding: 10px;
}

.navbar-icon img {
  display: block;
  width: 200px;
  height: 80px;
  max-width: none;
  object-fit: contain;
}

#login-link {
  grid-column: 5 / 7;
}

#support-link {
  grid-column: 7 / 9;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  height: 60px;
  margin-top: 20px;
  padding: 0 40px;
  text-align: center;
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--irc-orange-hover);
  outline: none;
}

.nav-link.active {
  background-color: var(--irc-orange);
}

#non-auth-mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 8px 16px;
}

.mobile-brand img {
  display: block;
  width: 150px;
  height: 60px;
  object-fit: contain;
}

.navbar-toggler {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--irc-blue);
  padding: 0 0 12px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #fff;
  font-weight: 500;
  padding: 14px 24px;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  background-color: var(--irc-orange-hover);
}

.mobile-menu a.active {
  background-color: var(--irc-orange);
}

.view {
  min-height: calc(100vh - var(--content-offset));
  margin-top: var(--content-offset);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 0;
}

.calgary-background {
  background-image: url("../images/backsplashes/calgary.png");
}

#login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--content-offset));
  padding: 30px 16px 48px;
}

/* 551px is the live card width at 1440: Bootstrap col-lg-6 of the 1102px row
   inside a 1140 container. Reproduced as a flat max-width because this page
   carries no grid framework. */
.login-container {
  width: 100%;
  max-width: 551px;
  background-color: #fff;
  border: 1px solid var(--irc-orange-hover);
  border-radius: 10px;
  padding: 50px 40px;
}

#logoContainer {
  display: flex;
  justify-content: center;
}

#logo {
  display: block;
  width: 53%;
  max-width: 250px;
  height: auto;
}

.holding-form {
  margin-top: 1.5rem;
}

.form-row {
  margin: 0;
  width: 100%;
}

/* 2px border and a 1.5 line-height give the live field height of 48px
   (10 + 10 padding, 2 + 2 border, 24 content). A 1px border with the
   default line-height renders 40px and reads visibly squat. */
.auth-input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #fff;
  background-color: var(--auth-input-bg);
  color: #000;
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.5;
}

.auth-input:focus {
  outline: 2px solid var(--irc-orange);
  outline-offset: 1px;
}

.auth-input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.password-row {
  position: relative;
}

#revealPassword {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-35%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #414042;
}

#revealPassword svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sign-in-wrap {
  margin-top: 1.5rem;
}

.button-base {
  display: block;
  width: 100%;
  height: 40px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--irc-orange);
  border-radius: 3px;
  cursor: pointer;
}

.solid-button-style {
  color: #fff;
  background-color: var(--irc-orange);
}

.solid-button-style:hover,
.solid-button-style:focus {
  background-color: var(--irc-orange-hover);
  text-decoration: underline;
  outline: none;
}

#bottom-links {
  margin-top: 0.5rem;
}

.login-screen-links,
.login-screen-links:visited,
.login-screen-links:active {
  display: inline-block;
  font-size: 0.9em;
  padding: 0;
  text-decoration: none;
  color: #212529;
}

.login-screen-links:hover,
.login-screen-links:focus {
  text-decoration: underline;
}

#footer {
  min-height: 200px;
  padding: 0 16px 24px;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

#irc-logo-container {
  padding-top: 40px;
  text-align: center;
}

.powered-by {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wordmark {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
}

.top-margin {
  margin-top: 40px;
}

#footer-text {
  font-size: 14px;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
}

#footer-line {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--irc-blue-hover);
  margin: 16px 0;
}

#footer-link-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  padding-top: 10px;
  padding-bottom: 50px;
  font-size: 12px;
}

#footer-link-container a {
  text-decoration: underline;
}

.center-text {
  text-align: center;
}

.footer-copy {
  margin: 0;
}

@media only screen and (max-width: 991px) {
  #non-auth-nav {
    display: none;
  }

  /* The mobile bar carries the 60px wordmark, not the 80px desktop logo, so
     it keeps the shorter 76px height rather than inheriting --nav-height. */
  #non-auth-mobile-nav {
    display: flex;
    min-height: 76px;
  }

  .mobile-menu {
    top: 76px;
  }

  #logo {
    width: 66%;
  }

  .login-container {
    padding: 36px 24px;
  }
}
