﻿:root {
    --background-image-desktop: url(../img/field-large.avif);
    --background-image-desktop-fallback: url(../img/field-placeholder.svg);
    --background-color: #f4f4f7;
    --brand-color: #4b286d;
    --brand-logo-desktop: url(../img/placeholder-brand-empty.svg);
    --brand-logo-mobile: url(../img/placeholder-brand-empty.svg);
    --button-primary: #2b8000;
    --button-primary-hover: #1f5c09;
    --button-primary-text: #fff;
    --button-danger: #C12335;
    --button-danger-hover: #ce3d3d;
    --header-color: var(--brand-color);
    --link-color: #2b8000;
    --primary-logo-desktop: url(../img/telus-agcg-logo-hor-colour.svg);
    --primary-logo-mobile: url(../img/telus-agcg-logo-ver-colour.svg);
    --system-info-opacity: 0.5;
    --system-info-opacity-hover: 1;
}

body {
    color: #2c2e30;
    font-family: HNforTELUSSA, Helvetica, Arial, sans-serif;
    margin: 0;
    min-inline-size: 320px;
}

.container {
    display: grid;
    grid-template-columns: 600px auto;
}

    .container > .content {
        display: grid;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        padding: 48px;
    }

.flex-parent {
    display: flex;
    flex-wrap: wrap;
    margin: -20px;
}

    .flex-parent > .flex-child {
        margin: 20px;
    }

.flex-column-reverse {
    display: flex;
    flex-direction: column-reverse;
}

    .flex-column-reverse .button-panel {
        margin: 1em 0 0 0;
    }

.reg-back-button {
    margin-inline-end: auto;
}

.fixed-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    inset-inline-start: 0;
    position: fixed;
    inset-inline-end: 0;
    inset-block-start: 0;
}

    .fixed-header .logo-wrapper {
        padding: 10px;
    }

    .fixed-header .header-nav {
        padding: 10px;
        text-align: end;
    }

        .fixed-header .header-nav .logout-button {
            padding: 0.2em 0.5em;
        }

@font-face {
    font-family: BronkohBold;
    src: url(../fonts/bronkoh-bold.woff2);
}

h1 {
    color: var(--header-color, #4b286d);
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    margin: 0;
}

h3 {
    color: #757575;
    font-family: "Helvetica Neue", Helvetica, sans-serif;
}

a {
    color: var(--link-color, #4b286d);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

    a:active {
        position: relative;
        inset-block-start: 1px;
    }

p.privacy {
    margin-bottom: 0;
    text-align: center;
    font-size: smaller;
}

.email {
    display: inline-block;
    hyphens: auto;
    max-inline-size: calc(400px - 2em);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

form > fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

form label {
    display: block;
    font-weight: bold;
    line-height: 1.5;
}

    form label.inline {
        display: inline-block;
    }

form input[type=email],
form input[type=text],
form input[type=password] {
    border: solid 1px #ccc;
    border-radius: 0.5em;
    box-shadow: none;
    box-sizing: border-box;
    display: inline-block;
    font: inherit;
    block-size: 2em;
    padding: 0.5em;
    inline-size: 100%;
}

    form input[type=email]:focus,
    form input[type=text]:focus,
    form input[type=password]:focus {
        border-color: var(--brand-color, #4b286d);
        outline: 2px solid var(--brand-color, #4b286d);
    }

form input[type=checkbox] {
    font: inherit;
    block-size: 1em;
    margin: 0 0.25em 0 0;
    padding: 0;
    inline-size: 1em;
}

.button-panel {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin: 2.5em 0 0 0;
}

    .button-panel > button {
        margin-inline-start: 0.25em;
    }

.gl-button {
    -moz-appearance: none;
    -webkit-appearance: none;
    border: solid 2px;
    border-radius: 2em;
    box-sizing: border-box;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    padding: 0.5em 2em;
    position: relative;
    text-align: center;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

    .gl-button.gl-button-small {
        padding: 0.25em 1em;
    }

    .gl-button:active {
        inset-block-start: 1px;
    }

    .gl-button.gl-button-primary {
        background-color: var(--button-primary, #2b8000);
        border-color: var(--button-primary, #2b8000);
        color: var(--button-primary-text, #fff);
    }

        .gl-button.gl-button-primary:hover {
            background-color: var(--button-primary-hover, #3cb300);
            border-color: var(--button-primary-hover, #3cb300);
        }

    .gl-button.gl-button-secondary {
        background-color: #fff;
        border-color: var(--button-primary);
        color: var(--button-primary);
    }

        .gl-button.gl-button-secondary:hover {
            outline: 1px solid var(--button-primary);
        }

    .gl-button.gl-button-tertiary {
        background-color: #777;
        border-color: #777;
        color: #fff;
    }

        .gl-button.gl-button-tertiary:hover {
            background-color: #888;
            border-color: #888;
        }

    .gl-button.gl-button-danger {
        background-color: var(--button-danger, #C12335);
        border-color: var(--button-danger, #C12335);
        color: var(--button-primary-text, #fff);
    }

        .gl-button.gl-button-danger:hover {
            background-color: var(--button-danger-hover, #dc3b4e);
            border-color: var(--button-danger-hover, #dc3b4e);
        }

    .gl-button.gl-button-link {
        background-color: transparent;
        border-color: transparent;
        color: var(--link-color);
    }

        .gl-button.gl-button-link:hover {
            cursor: pointer;
            text-decoration: underline;
        }

        .gl-button.gl-button-link.no-padding {
            padding: 0;
        }

    .gl-button:disabled {
        background-color: #ccc;
        border-color: #ccc;
        color: #fff;
        pointer-events: none;
    }

.grants {
    display: table;
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

    .grants .grant {
        display: table-row;
    }

        .grants .grant .client-logo,
        .grants .grant .revoke {
            display: table-cell;
            inline-size: 20%;
        }

        .grants .grant .client-details {
            display: table-cell;
            inline-size: 60%;
        }

.validation-summary-errors ul {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

    .validation-summary-errors ul li {
        color: #c00;
    }

.validation-error {
    color: #c00;
}

.system-info {
    inset-block-end: 10px;
    color: #fff;
    font-size: small;
    inset-inline-start: 10px;
    position: absolute;
    opacity: var(--system-info-opacity);
    transition: opacity 0.2s;
}

    .system-info:hover {
        opacity: var(--system-info-opacity-hover);
    }

.brand-footer {
    inset-block-end: 10px;
    color: #fff;
    font-size: small;
    inset-inline-end: 10px;
    position: absolute;
}

.error-message {
    border: solid 2px #757575;
    font-family: monospace;
    padding: 0 1em;
}

.hide {
    display: none !important;
}

.qr-code > img {
    margin: auto;
}

.external-providers {
    display: grid;
    gap: 0.5em;
}

.shared-key {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.summary {
    color: #2b8000;
}

@media (min-width: 768px) {
    body:before {
        background-color: var(--background-color);
        background-image: var(--background-image-desktop), var(--background-image-desktop-fallback);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        inset-block-end: 0;
        content: "";
        inset-inline-start: 0;
        position: fixed;
        inset-inline-end: 0;
        inset-block-start: 0;
        z-index: -1;
    }

    .container {
        min-height: 100vh;
    }

    .mobile-only {
        display: none;
    }

    .logo {
        content: var(--primary-logo-desktop);
    }

    .brand-logo {
        content: var(--brand-logo-desktop);
    }

    .main-content {
        min-width: 400px;
    }

    .header-nav {
        color: #fff;
    }

        .header-nav .header-nav-username {
            text-shadow: 1px 1px #000, 1px -1px #000, -1px 1px #000, -1px -1px #000;
        }
}

@media (max-width: 767px), (max-height: 25em) {
    .container {
        background-color: #fff;
        display: block;
        block-size: auto;
    }

        .container .content {
            box-shadow: none;
            box-sizing: border-box;
            inline-size: 100%;
        }

    .fixed-header {
        background-color: var(--background-color);
        display: block;
        padding: 10px;
        position: static;
        text-align: center;
    }

        .fixed-header .logo {
            content: var(--primary-logo-mobile);
        }

        .fixed-header .header-nav {
            text-align: center;
        }

    .brand-logo {
        content: var(--brand-logo-mobile);
    }

    .system-info {
        color: #757575;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 13px;
    }
}
