/* ==========================================================================
   03_GENERALS: SITE
   --------------------------------------------------------------------------
   * README

   * DOCUMENT
   * HEADER
   * BANNER
   * MAIN
   * FOOTER

   * PAGE TYPE
        : Login
        : Edit
        : Success
        : Reset Password
        : Error
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * Styles on this stylesheet are the Site default styles.
 * That means they apply to the HTML components you can find in the
 * BaseTemplate.nopage file, and therefore, they apply to all site pages.

 * If you need to deal with an exception to these Site default styles, you
 * should manage it by adding a .body--modifier class via
 * {% block extraBodyClass %}{% endblock %} in the .page file that requires it,
 * and develop the given exception nested to that body modifier class in
 * stylesheet #17 under the corresponding page subtitle.

 * If you need to deal with styles for a new type of Site component or a new
 * sub-element for an existing one, you should develop them in this stylesheet,
 * under a new component subtitle or under the correspondent one accordingly,
 * separating them in Structure, Behaviour or Appearance styles as appropriate.
 */

/* DOCUMENT
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.body {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

[class*="__wrapper"] {
    margin: 0 auto;
    width: 100%;
    max-width: none;
    height: 100%;
    padding-left: 116px;
    padding-right: 116px;
}

@media all and (max-width: 1024px) {
    [class*="__wrapper"] {
        padding-right: 60px;
        padding-left: 60px;
    }
}

@media all and (max-width: 750px) {
    [class*="__wrapper"] {
        padding-right: 19px;
        padding-left: 19px;
    }
}

/* Behaviour
   -------------------------------------------------------------------------- */
.body {
    overflow-y: scroll;
}

/* Appearance
   -------------------------------------------------------------------------- */
html {
    background-color: #FFFFFF;
}

.body {
    background-color: #FFFFFF;
    font-family: 'Graphik', sans-serif;
    font-size: 16px;
    line-height: normal;
    font-weight: 300;
    font-style: normal;
    color: #131313;
}

/* HEADER
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.header {
    margin: 0 auto;
    width: 100%;
}

.header__wrapper {
    padding-top: 24px;
    padding-bottom: 26px;
}

.header__logo--default {
    width: 315px;
    height: 36px;
}

.header__logo--nav {
    width: 130px;
    height: 34px;
}

@media all and (max-width: 750px) {

    .header__logo--default {
        width: 190px;
        height: 21px;
    }
}

/* Behaviour
   -------------------------------------------------------------------------- */
.header__content {
    position: relative;
}

.header__nav {
    position: absolute;
    top:0;
    right: 0;
}

.header__logo {
    display: block;
    background-position: center left;
    -webkit-background-size: contain;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
}

/* Appearance
   -------------------------------------------------------------------------- */
.header {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--color--borders); /* Theme color defined in #16, with an override for each Library use as IE fallback */
    background-color: #FFFFFF;
    color: #767676;
    text-align: center;
}

.header__logo {
    background-image: var(--logo--header--main); /* Overrided in #16, with url relative to the specific portal */
}

/* BANNER: MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.banner {
    margin: 0 auto;
    width: 100%;
}

.banner__wrapper {
    padding-top: 46px;
    padding-bottom: 46px;
}

.banner__subtitle {
    margin-top: 20px;
}

.banner__actions {
    margin-top: 24px;
}

@media all and (max-width: 750px) {
    .banner__wrapper {
        padding-top: 26px;
        padding-bottom: 26px;
    }
}

/* Behaviour
   -------------------------------------------------------------------------- */

/*
 * 1. To center content vertically.
 */
.banner__content {
    display: table; /* 1 */
    width: 100%; /* 1 */
    height: 100%; /* 1 */
}

.banner__content>* {
    display: table-cell; /* 1 */
    vertical-align: middle; /* 1 */
}

/* Appearance
   -------------------------------------------------------------------------- */
.banner {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--color--borders);
    background-color: var(--color--white);
    color: var(--color--black);
    text-align: center;
}

.banner--main .banner__title {
    font-size: 40px;
    font-weight: 500;
    text-align: left;
    font-family: 'Tiempos', sans-serif;
}

.banner__subtitle {
    font-size: 22px;
}

@media all and (max-width: 750px) {
    .banner--main .banner__title {
        font-size: 28px;
    }
}

/* MAIN
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.main {
    margin: 0 auto;
    width: 100%;
}

.main__wrapper {
    padding-top: 54px;
    padding-bottom: 104px;
}

.pusher {
    flex-grow: 1;
}

@media all and (max-width: 750px) {

    .main__wrapper {
        padding-top: 25px;
        padding-bottom: 50px;
    }
}

/* Appearance
   -------------------------------------------------------------------------- */
.main {
    background-color: #FFFFFF;
    color: var(--color--black);
}

.errorPageMessage a{
    color: rgb(0, 0, 238);
}

/* FOOTER
========================================================================== */

.footer {
    background-color: var(--color--black);
    width: 100%;
}

.footer__wrapper {
    padding-top: 32.5px;
    padding-bottom: 40px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
}

.footer__content__left {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer__content__right {
    display: flex;
    flex-direction: column;
}

.footer__links {
    display: flex;
    gap: 16px;
    padding-top: 2.5px;
}

.footer__links__item.link {
    color: var(--color--white);
}

.footer__copy {
    color: var(--color--white--blur);
}

.footer__social {
    display: flex;
    gap: 24px;
}

.footer__social__item {
    color: var(--color--white);
}

.footer__social__item__icon {
    height: 28px;
    width: 28px;
    vertical-align: baseline;
}

@media all and (max-width: 750px) {
    .footer__content {
        flex-direction: column;
        align-items: center;
        row-gap: 24px;
    }

    .footer__content__left {
        align-items: center;
    }
}

/* PAGE TYPE: Login
========================================================================== */

.body--login-detail .main__wrapper {
    padding-top: 71px;
}

.body--login-detail .section--narrow {
    max-width: 960px;
}

.body--login-detail .grid.grid--gutters-0 {
    column-gap: 80px;
}

.body--login-detail .link {
    border-bottom: none;
}

.body--login-detail .button-bar {
    padding-top: 33px;
}

.body--login-detail .fieldSpec:last-of-type {
    padding-bottom: 33px;
}

.body--login-detail .grid__item:nth-child(1) {
    max-width: 360px;
    font-family: 'Tiempos', sans-serif;
}

.body--login-detail .form--login {
    font-family: 'Graphik', sans-serif;
}

.body--login-detail .grid__item:nth-child(2) {
    max-width: 519px;
}

.login__info-list {
    list-style-type: disc;
    line-height: 1.3;
    list-style-position: inside;
}

.login__info-list li {
    padding-left: 22px;
    text-indent: -22px;
}

@media (max-width: 1024px) and (min-width: 751px) {
    .body--login-detail .grid.grid--gutters-0 {
        column-gap: 45px;
    }
}

@media all and (max-width: 750px) {
    .body--login-detail .grid.grid--gutters-0 {
        row-gap: 36px;
    }

    .body--login-detail .grid__item:nth-child(1) {
        max-width: 100%;
    }

    .body--login-detail .main__wrapper {
        padding-top: 40px;
        padding-bottom: 57px;
    }
}

/* PAGE TYPE: Edit
========================================================================== */

.body--edit .Section + .Section {
    padding-top: 32px;
}

.body--edit .warningOffice {
    padding-bottom: 0;
}

.body--edit .button-bar__wrap {
    display: flex;
    column-gap: 16px;
    padding-bottom: 4px;
}

/* PAGE TYPE: Success
========================================================================== */

.body--success .article__header {
    margin-bottom: 24px;
}

.body--success .main__wrapper {
    padding-top: 48px;
}

/* PAGE TYPE: Reset Password
========================================================================== */

.body--reset-password .section__header {
    margin-bottom: 24px;
}

.body--reset-password .section__header__text__title {
    padding-bottom: 24px;
}

.body--reset-password .fieldSpec:has(label[for="tpt_resetPasswordEmail"]) {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.reset-password--input__container {
    padding-top: 8px;
}

.body--reset-password span[class*="requiredField"] {
    display: none;
}

.body--reset-password .button-bar {
    display: flex;
    column-gap: 10px;
}

@media all and (min-width: 1025px) {

    .body--reset-password .section__footer {
        margin-top: 128px;
    }
}

@media all and (max-width: 750px) {

    .body--reset-password .fieldSpec:has(label[for="tpt_resetPasswordEmail"]) {
        flex-direction: column;
        row-gap: 30px;
    }

    .body--reset-password .button-bar {
        flex-direction: column;
        row-gap: 16px;
        width: 100%;
    }
}

/* PAGE TYPE: Error
========================================================================== */

.body--error .section,
.body--error .section__header>* {
    text-align: center;
    margin: 0 auto;
}

.errorPageMessage {
    line-height: 1.38;
    display: contents;
    text-align: center;
}

.body--error .section__header {
    margin-bottom: 24px;
}

.body--error .section__footer {
    padding-top: 0;
}

.body--error .article__content {
    text-align: center;
    margin: 0 auto;
}

.errorPageMessage a {
    color: var(--color--black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media all and (max-width: 750px) {

    .body--error .main__wrapper {
        padding-bottom: 80px;
    }

    .body--error .article__content {
        max-width: 339px;
    }
}
