/***** [Font imports] *************************************************************************************************/

@import url("/vendor/mdi/materialdesignicons.min.css");

/***** [Core] *********************************************************************************************************/

* {
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html, body {
    height: 100%;
    min-width: 100%;
    max-width: 100%;
}
html {
    font-size: 10px;
}
body {
    background-color: var(--color-bg-main);
    font-size: 1.6rem;
    font-family: var(--font-family-body);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

a {
    color: var(--color-accent);
    transition: color .1s ease;
    text-decoration: none;
}
a:hover {
    color: #3C4858;
}

/***** [Layout] *******************************************************************************************************/

.wrap {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: auto;
}

.logo-wrap {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 0 0 3rem 0;
}
.logo-wrap.-spacer {
    height: 62px;
}

.main {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .1);
    margin: 0 0 3rem 0;
    position: relative;
}

/***** [Footer] *******************************************************************************************************/

.footer-wrap {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin: 1.5rem auto 3rem auto;
    max-width: 335px;
    color: #666;
}
.footer-wrap.-early {
    margin-bottom: 1.5rem;
}
.footer-wrap.-secondary {
    color: #999;
}
.footer-wrap a {
    color: #333;
    text-decoration: none;
}

.footer-wrap.-links {
    display: flex;
    flex-direction: row;
    max-width: 100%;
}
.footer-wrap.-links a, .footer-wrap.-links span {
    margin: 0 .7rem;
}
.footer-wrap.-links a {
    transition: color .1s ease;
}
.footer-wrap.-links a:hover {
    color: var(--color-accent);
}

/***** [Commons] ******************************************************************************************************/

hr {
    display: block;
    clear: both;
    height: 1px;
    background-color: #eee;
    width: 100%;
    margin: 1.5rem 0;
}

h1 {
    font-family: var(--font-family-titles);
    font-weight: var(--font-weight-titles);
    font-size: 2.6rem;
    color: #111;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
h2 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

p.-centered {
    clear: both;
    display: block;
    width: 100%;
    text-align: center;
}

/***** [Forms] ********************************************************************************************************/

.help-block {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.4rem;
    color: #666;
    margin: 1rem 0;
}

.error-message {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 4px;
    font-weight: normal;
    color: #a8281a;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(231, 76, 60, .075);
    background-color: rgba(231, 76, 60, .05);
    line-height: 1.3;
}

form {
    width: 100%;
    position: relative;
}

label {
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-labels);
    margin: 1.5rem 0 1rem 0;
}

input[type="text"], input[type="date"], input[type="password"], input[type="email"] {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    font-size: 15px;
    line-height: 26px;
    padding: 7px 10px 6px;
    position: relative;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(15,15,15,.1), inset 0 1px 1px rgba(15,15,15,.1);
    background: #fff;
    cursor: text;
    margin-top: 4px;
    margin-bottom: 4px;
    font-family: inherit;
    -webkit-appearance: none;
}

.form-group, .form-group > div, .button-group {
    position: relative;
}

.form-group.type-checkbox {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}
.form-group.type-checkbox input {
    margin: 0;
    padding: 0;
    height: 15px;
    width: 15px;
}
.form-group.type-checkbox label {
    margin: 0 0 0 1rem;
    padding: 0;
    font-weight: 600;
}


/***** [Buttons] ******************************************************************************************************/

.button, button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    margin: 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: inherit;
    padding: 1rem 1.5rem 1.1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, .05);
    outline: none;
    appearance: none;
    cursor: pointer;
    user-select: none;
    transition: all .1s ease;
    transition-property: color, box-shadow;
}
.button.-space-top {
  margin-top: 3rem;
}
.button.-smol, button.-smol {
    font-size: 1.4rem;
    padding: 1rem 1rem 1rem 1rem;
}
.button.-no-grow {
  display: inline-flex;
  flex-grow: 0;
  flex-shrink: 1;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}
.button.-fb, button.-fb {
    background: #4575BF;
    color: #fff;
}
.button.-fb-outline, button.-fb-outline {
    border: 1px solid #4575BF;
    color: #4575BF;
    background-color: transparent;
}
.button.-fb-outline:hover, button.-fb-outline:hover {
    color: #3C4858;
}
.button.-tv, button.-tv, button[type="submit"] {
    background: var(--color-accent);
    color: #fff;
}
.button:hover, button:hover {
    box-shadow: inset 999px 999px 999px rgba(255, 255, 255, .1);
}
.button:active, button:active {
    transition: none;
    box-shadow: inset 2px 2px 2px rgba(0, 0, 0, .1);
}
.button i:first-child, button i:first-child {
    margin-right: 7px;
}

.button:disabled, button[disabled] {
    opacity: .5 !important;
    box-shadow: none !important;
    cursor: wait !important;
    transition: all .1s ease !important;
}

/***** [Error pages] **************************************************************************************************/

.http-error-page.-custom-error {
    max-width: 420px;
    text-align: left;
}
.http-error-page.-oci {
    max-width: 420px;
    text-align: left;
    padding-bottom: 35px;
}
.http-error-page.-oci:last-child {
  padding-bottom: 0;
}

.http-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    font-size: 14px;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    font-weight: 500;
    padding: 5px;
    border-radius: 4px;
}
h1 > .http-error {
    margin: .2rem .7rem 0;
}

.err-ref-wrap {
    display: flex;
    width: 100%;
    align-items: center;
    height: 24px;
    margin: 2.5rem 0 0 0;
}
.err-ref {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-family: monospace;
    cursor: help;
    user-select: all;
    background-color: rgba(241, 196, 15, .2);
    justify-self: flex-start;
    padding: 10px;
    border-left: none;
}

.code-block {
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, .1);;
    background: #fff;
    font-size: 14px;
    text-align: left;
    padding: 15px;
}

.custom-error {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 4px;
    font-size: 1.6rem;
    font-weight: normal;
    color: #c0392b;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(231, 76, 60, .075);
    background-color: rgba(231, 76, 60, .05);
    font-weight: bold;
}

.exits {
    margin: 3rem 0 0 0;
}

/***** [OAuth] ********************************************************************************************************/

.grant-list {
    display: flex;
    flex-direction: column;
    margin: 1.5rem auto;
    text-align: left;
    min-width: 300px;
}
.grant-list li {
    padding: .25rem 0;
}

/***** [Responsive core] **********************************************************************************************/

@media all and (max-width: 1000px) {
    .wrap {
        padding: 0;
    }
    .wrap > .logo-wrap {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/***** [OCI User Selector] ********************************************************************************************/

.oci-user-selector-page {
  width: 100%;
  min-width: 500px;
  max-width: 700px;
  text-align: left;
  padding: 1rem;
}

.oci-user-selector-page h1 {
  text-align: left;
  justify-content: flex-start;
}

.oci-user-selector {
  border: 1px solid #eee;
  border-radius: 4px;
  margin: 2.5rem 0 0 0;
  overflow: hidden;
  position: relative;
}

.oci-user-selector .list {
  height: 420px;
  overflow-y: scroll;
  position: relative;
}

.oci-user-selector .no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color: #888;
  font-size: 14px;
}

.oci-user-selector .user-item {
  border-bottom: 1px solid #eee;
  padding: .15rem 1.5rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oci-user-selector .user-item:last-child {
  border-bottom: none;
}

.oci-user-selector .user-item .text {
  display: flex;
  flex-direction: column;
}
.oci-user-selector .user-item .name {
  font-weight: bold;
  margin: 3px 0;
}
.oci-user-selector .user-item .debtor {
  color: #888;
  margin: 3px 0;
}

.oci-user-selector .search-prefix {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}
.oci-user-selector .search-prefix .search-combo {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}
.oci-user-selector .search-prefix .search-combo i {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  color: #aaa;
  z-index: 1;
}
.oci-user-selector .search-prefix .search-combo input {
  padding-left: 3rem;
  z-index: 0;
}

.oci-user-selector .suffix {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: #666;
  padding: 1.5rem;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}