﻿
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/*
    The sign-in layout: the cover photo on the left and a White form panel on the right. This
    file loads before advocus-arrow.css, so rules that must beat the brand layer's Gray-Green
    page and Action Green .btn-success are written more specifically.
*/
html body {
    background-color: var(--aa-white);
}

/* Navy behind the cover until the photo arrives from the API (or if it never does), so the
   White tagline stays readable. */
.cover-background {
    background-color: var(--aa-navy);
}

.label-inner-input {
    width: 100%;
    margin: 0;
    border-radius: 5px;
    padding: 8px 15px 3px 15px;
    border: 1px solid var(--aa-input-border);
    /*max-width: 540px;*/
}

    .label-inner-input .m-input {
        border-radius: unset;
        padding: 0;
        margin: 0;
        border: none;
        outline: none;
        height: 30px;
    }

        /* The box takes the focus ring rather than the bare input inside it. */
        .label-inner-input .m-input:focus {
            box-shadow: none;
        }

    .label-inner-input:focus-within {
        border-color: var(--aa-royal);
        box-shadow: var(--aa-focus-ring);
    }

    .label-inner-input span.input-title {
        color: var(--aa-navy);
        font-weight: bold;
    }

.login-tagline {
    color: var(--aa-white);
    font-family: var(--aa-font-heading);
    font-weight: 700;
    font-size: 3em;
}

.tagline-wrapper {
    height: 75%;
    top: 10%;
}

.tagline-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

    .tagline-container > div {
        flex: 0;
    }


/* "What is ATG GO?" on the cover: the Royal primary button (.btn-info in the brand layer). */
.login-tagline-btn {
    font-size: 1.4em;
    color: var(--aa-white);
    border-color: var(--aa-royal);
}

.login-head {
    color: var(--aa-navy);
    margin-bottom: 30px;
}

    /* The tagline under the welcome heading is secondary text: Teal. */
    .login-head h4 {
        color: var(--aa-teal);
        font-size: 1.6rem;
    }

.m-login__wrapper {
    width: 450px;
    margin: auto;
}

    .m-login__wrapper .m-login__head .m-login__title {
        font-size: 2.5em;
    }

.m-input {
    color: var(--aa-navy) !important;
    font-size: 1.4em;
}

.m-login__wrapper .m-login__form .m-form__group {
    padding-bottom: 0;
}

.login-buttons,
.m-login__form-sub {
    /*max-width: 540px;*/
}

.login-buttons {
    margin-top: 40px;
}

.btn-sign-up,
.btn-sign-in,
.btn-forgot-cancel,
.btn-forgot-pass {
    width: 100%;
    padding: 10px;
    font-size: 1.3em;
}

/*
    SIGN IN and GET PIN are the primary action on these screens, so they take the guide's Royal
    primary button instead of the brand layer's Action Green .btn-success. Its hover and active
    rules are !important, hence the !important here.
*/
.btn-sign-in.btn-success,
.btn-forgot-pass.btn-success {
    background-color: var(--aa-royal);
    border-color: var(--aa-royal);
    color: var(--aa-white);
}

    .btn-sign-in.btn-success:hover,
    .btn-sign-in.btn-success:focus,
    .btn-sign-in.btn-success:active,
    .btn-sign-in.btn-success.active,
    .btn-sign-in.btn-success:not(:disabled):not(.disabled):active,
    .btn-forgot-pass.btn-success:hover,
    .btn-forgot-pass.btn-success:focus,
    .btn-forgot-pass.btn-success:active,
    .btn-forgot-pass.btn-success.active,
    .btn-forgot-pass.btn-success:not(:disabled):not(.disabled):active {
        background-color: var(--aa-navy) !important;
        border-color: var(--aa-navy) !important;
        color: var(--aa-white) !important;
    }

/* Secondary buttons (REGISTER, CANCEL, BACK, RETURN TO SIGN IN): White fill, Button border Gray,
   Navy label. Scoped to the form panel; the cover's button stays Royal. */
.content-container .btn-outline-dark {
    background-color: var(--aa-white);
    border-color: var(--aa-button-border);
    color: var(--aa-navy);
}

    .content-container .btn-outline-dark:hover,
    .content-container .btn-outline-dark:focus,
    .content-container .btn-outline-dark:active,
    .content-container .btn-outline-dark.active,
    .content-container .btn-outline-dark:not(:disabled):not(.disabled):active {
        background-color: var(--aa-pale-royal);
        border-color: var(--aa-navy);
        color: var(--aa-navy);
    }

/* Inline links: Royal, bold, underlined. */
.content-container .m-link {
    color: var(--aa-royal);
    font-weight: 700;
    text-decoration: underline;
}

    .content-container .m-link:hover,
    .content-container .m-link:focus {
        color: var(--aa-navy);
    }

        .content-container .m-link:hover:after {
            border-bottom-color: var(--aa-navy);
        }

.content-container .text-danger {
    color: var(--aa-action-red) !important;
}

/* Secondary text on the White panel. */
.content-container .text-secondary {
    color: var(--aa-slate) !important;
}

/* A few instruction paragraphs carry the Stag heading class; as body copy they take the body
   font rather than the brand layer's Merriweather Bold. */
.content-container p.font-stag-book {
    font-family: var(--aa-font-body);
    font-weight: 400;
}

.signup-input-section .form-group.ismembergroup {
    margin-bottom: 1rem !important;
}

.ismembergroup .m-option__control {
    display: none;
}

.m-option {
    text-align: center;
    font-family: var(--aa-font-body);
    padding: 0.5em;
    font-size: 1.3em !important;
}

/* Sign-up choices: the chosen option is Royal (.bg-primary), the other a secondary button. */
.signup-section .m-option.bg-primary {
    border-color: var(--aa-royal);
}

.signup-section .bg-secondary {
    background-color: var(--aa-white) !important;
    border-color: var(--aa-button-border);
    color: var(--aa-navy);
}

    .signup-section .bg-secondary:hover {
        background-color: var(--aa-pale-royal) !important;
        border-color: var(--aa-navy);
    }

#signup-section {
    /*height: 700px;*/
    /*height: 900px;*/
    width: 500px;
}

.signup-section {
    align-items: center;
}

.label-inner-pin-input {
    width: 100%;
    margin: 0;
    border-radius: 5px;
    padding: 8px 15px 8px 0;
    /*border: 1px solid #e0e0e0;*/
    /*max-width: 540px;*/
}

    .label-inner-pin-input span.input-title {
        color: var(--aa-navy);
        font-weight: bold;
    }

.pincode-input-container {
    display: flex !important;
}

    .pincode-input-container input.mid {
        margin-left: 15px;
        border-left-width: 1px;
    }

    .pincode-input-container input.last {
        margin-left: 15px;
        border-left-width: 1px;
    }

/* PIN digit boxes are input fields: Pale Royal fill, Input border, Navy text. */
.pincode-input-text, .form-control.pincode-input-text {
    border: 1px solid var(--aa-input-border);
    border-radius: 5px !important;
    flex-grow: 1;
    flex-basis: 0;
    height: 59px;
    font-size: 2em;
    text-align: center;
    background-color: var(--aa-pale-royal);
    color: var(--aa-navy);
}

.pinlogin-field {
    border: 1px solid var(--aa-input-border);
    border-radius: 5px !important;
    flex-grow: 1;
    /*flex-basis: 0;*/
    height: 59px;
    font-size: 2em;
    text-align: center;
    width: 35px;
    float: left;
    background-color: var(--aa-pale-royal);
    color: var(--aa-navy);
}

    .pinlogin-field:focus {
        border-color: var(--aa-royal);
        box-shadow: var(--aa-focus-ring);
        outline: none;
    }

/*input.error {
    border: 1px solid #ed6b75;
}*/

.pinlogin {
    display: flex !important;
}

    .pinlogin input.pinlogin-field {
        margin-left: 15px;
        border-left-width: 1px;
    }

        .pinlogin input.pinlogin-field:first-child {
            margin-left: 0px !important;
            border-left-width: 1px;
        }

#m_login_forget_password {
    color: var(--aa-royal);
    font-weight: bold;
    text-decoration: underline;
}

    #m_login_forget_password:hover {
        color: var(--aa-navy);
        text-decoration: none;
    }

.row.m-login__form-sub {
    padding-top: 10px;
}

.signup-bottom {
    margin-top: 2em !important;
}

.bottom-btns {
    margin-top: 1.2em;
    margin-bottom: 2rem;
}

    .bottom-btns label {
        color: var(--aa-navy);
    }

    .bottom-btns .back-btn-container a {
        color: var(--aa-navy);
    }

        .bottom-btns .back-btn-container a:hover {
            color: var(--aa-navy);
        }


    .bottom-btns div .btn {
        width: 100%;
        text-align: center;
        font-family: var(--aa-font-body);
        padding: 0.5em;
        font-size: 1.3em !important;
    }

#m_company_create {
    text-decoration: underline;
    color: var(--aa-royal);
    font-weight: bold;
}

    #m_company_create:hover {
        text-decoration: none;
    }

.signup-input-section .form-group {
    margin-bottom: 0 !important;
}

.m-form .m-form__help {
    padding-top: 0;
}

.dynamic-container {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.signup-form {
    max-width: 450px;
}

.custom-model-header {
    padding-bottom: 0px !important;
    border-bottom: none;
}

.custom-model-body {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.custom-model-footer {
    padding-top: 0px !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
    border-top: none;
}

.app-icons a img {
    width: 140px;
}

.m-form .m-form__group:last-child {
    padding-bottom: 0;
}

.m-form .m-form__group:first-child {
    padding-top: 0;
}

@media(min-width:768px) and (max-width:1024px) {
}

@media(min-width:768px) and (max-width:1024px) and (orientation:landscape) {
}

@media(min-width:481px) and (max-width:767px) {
}

@media(min-width:320px) and (max-width:480px) {

    .m-login__wrapper {
        width: 320px;
    }

    .pinlogin input.pinlogin-field {
        margin-left: 5px;
    }
}

@media(max-width:319px) {
    .cover-background {
        display: none;
    }
}

@media(max-width:991px) {
    .app-icons {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 30px;
    }

        .app-icons > div.row {
            justify-content: flex-end;
        }

        .app-icons a {
            margin-right: 10px;
        }

    .login-tagline {
        font-size: 2.4em;
        margin: 2rem 0;
    }

    .login-tagline-btn {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .tagline-wrapper {
        top: 0;
        justify-content: center;
        height: 100%;
    }

    .tagline-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 100%;
    }

        .tagline-container > div {
            flex: unset;
        }

    .atg-tag {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
