﻿.body-container {
  margin-top: 60px;
  padding-bottom: 40px; }

.welcome-page li {
  list-style: none;
  padding: 4px; }

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0; }

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray; }
  .grants-page .card .card-title {
    font-size: 120%;
    font-weight: bold; }
    .grants-page .card .card-title img {
      width: 100px;
      height: 100px; }
  .grants-page .card label {
    font-weight: bold; }

.system-status-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out;
  pointer-events: none; }

.system-status-link:hover .system-status-tooltip {
  opacity: 1;
  visibility: visible; }

.external-login-divider {
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: #9b9b9b;
  font-size: 11px;
  text-transform: uppercase; }
  .external-login-divider::before, .external-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e3e3e3; }
  .external-login-divider span {
    padding: 0 12px; }

.btn-external-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background-color: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
  .btn-external-login:hover, .btn-external-login:focus {
    background-color: #f7f7f7;
    border-color: #b9b9b9;
    color: #3c4043;
    text-decoration: none; }
  .btn-external-login .external-login-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0; }

.external-rejected {
  padding: 8px 0 4px 0;
  color: #0c0c0c; }
  .external-rejected .external-rejected-icon {
    width: 46px;
    height: 46px;
    color: #f0ad4e;
    margin-bottom: 14px; }
  .external-rejected .external-rejected-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0; }
  .external-rejected .external-rejected-message {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 10px 0; }
  .external-rejected .external-rejected-next {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    opacity: 0.72; }

.external-rejected-code {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.45; }

/* The landing CDN gives the login panel a fixed 453px height and centers it with a 453px-based "top".
   A tall agency logo (up to 150px) plus the external login buttons doesn't fit, so the panel grows with
   its content (453px minimum) and the page centers it with flexbox instead. */
.login-page .nc-primary-auth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 100vh;
  padding: 20px 0; }

.nc-primary-auth > section[data-type=login] {
  display: flex;
  height: auto;
  min-height: 453px;
  top: 0; }

/* The CDN background image (750x453) has the white curve, the arrow and the teal bottom line baked in, so it
   can't stretch. Above 767px the curve and arrow are drawn in CSS at the image's geometry (ellipse fitted to the
   curve: center 36px/221.5px, radii 424px/396px of the 449px above the line) and scale with the panel height;
   the image only supplies the dark photo, scaled so its 449px above the line fill the panel. */
@media only screen and (min-width: 768px) {
  .nc-primary-auth > section[data-type=login] {
    z-index: 0;
    overflow: hidden;
    border-bottom: 4px solid #2dabc1;
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto calc(100% * 453 / 449); }
    .nc-primary-auth > section[data-type=login]::before {
      content: "";
      position: absolute;
      z-index: -1;
      left: -388px;
      width: 847px;
      top: -38.86%;
      height: 176.39%;
      border-radius: 50%;
      background-color: #fff; }
    .nc-primary-auth > section[data-type=login]::after {
      content: "";
      position: absolute;
      left: 426px;
      top: calc(48.66% - 32px);
      width: 64px;
      height: 64px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%232dabc1'/%3E%3Cpath d='M25 32h17M35 24.5l7.5 7.5-7.5 7.5' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/100% 100%; }
    .nc-primary-auth > section[data-type=login] .additional-part {
      height: auto;
      align-self: center;
      flex-shrink: 0; }
      .nc-primary-auth > section[data-type=login] .additional-part .overline {
        margin-top: 0; } }

/* The CDN's mobile "background-image: none" loses to its more specific [data-type=login] image rule, so the image's
   baked-in teal line (at 449px) would cut through a panel that has grown taller than 453px. */
@media only screen and (max-width: 767px) {
  .login-page .nc-primary-auth > section[data-type=login] {
    background-image: none; } }

.nc-primary-auth > section[data-type=login] .main-part {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  vertical-align: top;
  height: auto;
  padding-top: 50px;
  padding-bottom: 15px; }
  .nc-primary-auth > section[data-type=login] .main-part > header,
  .nc-primary-auth > section[data-type=login] .main-part section,
  .nc-primary-auth > section[data-type=login] .main-part > footer {
    top: 0; }
  .nc-primary-auth > section[data-type=login] .main-part > header {
    margin-bottom: 30px; }
  .nc-primary-auth > section[data-type=login] .main-part > footer {
    margin-top: auto;
    padding-top: 15px; }
  .nc-primary-auth > section[data-type=login] .main-part .validation-summary-errors ul {
    margin-top: 0;
    margin-bottom: 0; }
