﻿body {
  margin-top: 65px;
}
.navbar-header {
  position: relative;
  top: -4px;
}
.navbar-brand > .icon-banner {
  position: relative;
  top: -2px;
  display: inline;
}
.icon {
  position: relative;
  top: -10px;
}
.logged-out iframe {
  display: none;
  width: 0;
  height: 0;
}
.page-consent .client-logo {
  float: left;
}
.page-consent .client-logo img {
  width: 80px;
  height: 80px;
}
.page-consent .consent-buttons {
  margin-top: 25px;
}
.page-consent .consent-form .consent-scopecheck {
  display: inline-block;
  margin-right: 5px;
}
.page-consent .consent-form .consent-description {
  margin-left: 25px;
}
.page-consent .consent-form .consent-description label {
  font-weight: normal;
}
.page-consent .consent-form .consent-remember {
  padding-left: 16px;
}
.grants .page-header {
  margin-bottom: 10px;
}
.grants .grant {
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid lightgray;
}
.grants .grant img {
  width: 100px;
  height: 100px;
}
.grants .grant .clientname {
  font-size: 140%;
  font-weight: bold;
}
.grants .grant .granttype {
  font-size: 120%;
  font-weight: bold;
}
.grants .grant .created {
  font-size: 120%;
  font-weight: bold;
}
.grants .grant .expires {
  font-size: 120%;
  font-weight: bold;
}
.grants .grant li {
  list-style-type: none;
  display: inline;
}
.grants .grant li:after {
  content: ', ';
}
.grants .grant li:last-child:after {
  content: '';
}

/* Login Page Styles */
body.login-page {
  margin: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  position: fixed;
  inset: 0;
  background-color: #E0F1FF;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.login-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 118px 12px 24px 12px;
  width: 100%;
  max-width: 390px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #E0F1FF;
  margin: 0 auto;
}

.login-container > * + * {
  margin-top: 30px;
}

.header-illustration {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
}

.header-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.login-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  width: 100%;
  padding: 32px 24px;
  border-radius: 42px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

.login-card > * + * {
  margin-top: 16px;
}

.login-card form > * + * {
  margin-top: 8px;
}

.form-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100%;
}

.login-card h2 {
  color: #383947;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px 0;
  text-align: center;
}

.icon-input {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}

.input-icon {
  position: absolute;
  left: 0;
  top: 21px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 20px;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.form-input {
  width: 100%;
  padding: 12px 0 12px 36px;
  border: none;
  border-bottom: 1px solid #D5D5DF;
  border-radius: 0;
  font-size: 15px;
  color: #383947;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
  position: relative;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-bottom-color: #752BF5;
}

.form-input::-webkit-input-placeholder {
  color: #616277;
  opacity: 0.8;
}

.form-input::placeholder {
  color: #616277;
  opacity: 0.8;
}

/* Avoid Bootstrap .btn-primary conflict + Safari native button chrome */
body.login-page .btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #752BF5;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  margin-top: 18px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body.login-page .btn-primary:hover,
body.login-page .btn-primary:focus {
  background-color: #5f1ec7;
  color: #FFFFFF;
  outline: none;
}

.link-forgot {
  display: block;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #383947;
  background-color: transparent;
  border: 1px solid #383947;
  border-radius: 100px;
  cursor: pointer;
}

.link-forgot:hover,
.link-forgot:focus {
  background-color: rgba(19, 106, 178, 0.05);
  border-color: #383947;
  text-decoration: none;
  color: #383947;
}

/* input validation styles */
.login-card .alert-danger {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  text-align: left;
}

.login-card .field-validation-error {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  color: #D92D20;
  font-size: 13px;
  text-align: left;
}

.login-card .field-validation-valid {
  display: none;
}

.login-card .input-validation-error {
  border-bottom-color: #D92D20;
}

.login-card .icon-input {
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.login-card .icon-input .form-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 100%;
  flex: 1 1 100%;
}

.login-card .icon-input .field-validation-error,
.login-card .icon-input .field-validation-valid {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 100%;
  flex: 1 1 100%;
  padding-left: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.login-card .field-validation-error .alert-icon {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.login-card .field-validation-error .error-text {
  line-height: 1.3;
}

/* ERROR MESSAGE TEXT & ICON */
.error-message {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #D92D20;
  margin-top: 4px;
}

.input-group.error .error-message {
  display: flex;
}

.error-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Global Error Alert Banner */
.alert-box.error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 0px;
  border-radius: 8px;
  background-color: #FEF3F2;
  border: 1px solid #FECDCA;
  border-left: 4px solid #D92D20;
}

.alert-icon-wrapper {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  font-size: 13px;
  line-height: 1.4;
  color: #616277;
}

.alert-content .validation-summary-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* End Login Page Styles */