﻿:root {
    --primary: #00CC5C;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background-color: #efefef;
    overflow-x: hidden;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #222222;
}

    body:before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #efefef;
        background: linear-gradient(0, rgba(0,0,0, 0.1), #efefef 100%);
        clip-path: polygon(100% 0, 100% 100%, 0 100%);
        width: 100%;
        height: 100%;
        z-index: 1;
    }

.body-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100vh;
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    z-index: 1;
    box-shadow: inset -1px 0 0 0 rgba(0, 0, 0, 0.1);
    box-shadow: rgba(50, 50, 93, 0.1) 0 30px 60px -12px, rgba(0, 0, 0, 0.1) 0 18px 36px -18px;
}

.account-block {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.acount-block-header {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    padding: 0 0 30px;
}

    .acount-block-header .acount-block-header-logo {
        flex: 0 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

        .acount-block-header .acount-block-header-logo a {
            display: inline-block;
        }

            .acount-block-header .acount-block-header-logo a img {
                height: 40px;
            }

.acount-block-footer {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #888888;
    font-size: 12px;
    font-weight: 300;
    padding: 30px 0 0;
}

.acount-block-body {
    flex: 0 0;
    display: flex;
    flex-direction: column;
}

.account-block-title {
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 21px;
    margin: 0 0 3px;
}

.account-block-subtitle {
    color: #888888;
    font-size: 13px;
    font-weight: 300;
    margin: 0 0 30px;
}

.account-block-error-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .account-block-error-list .account-block-error-message {
        color: #888888;
        font-size: 13px;
        font-weight: 300;
        margin: 0 0 30px;
    }


.account-block-body-separator {
    display: flex;
    flex-direction: row;
    padding: 30px 0;
}

    .account-block-body-separator .account-block-body-separator-text {
        flex: 1 1;
        display: flex;
        flex-direction: row;
        gap: 15px;
        color: #888888;
        font-family: 'Roboto', sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 12px;
        font-weight: 300;
        align-items: center;
    }

        .account-block-body-separator .account-block-body-separator-text:before,
        .account-block-body-separator .account-block-body-separator-text:after {
            content: '';
            flex: 1 1;
            height: 1px;
            display: flex;
            border-top: 1px dashed #dddddd;
        }

.account-social-logins {
    flex: 1 1;
    display: flex;
    flex-direction: column;
}

    .account-social-logins form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

.btn {
    background-color: #fefefe;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    line-height: 0;
    color: #6d6d6d;
    cursor: pointer;
    outline: none;
    transition: all ease-in-out 150ms;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--primary);
    border-color: rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

    .btn-primary:hover {
        box-shadow: inset 1000px 1000px 1000px 1000px rgba(255, 255, 255, 0.1);
    }

a.btn.btn-primary {
    text-decoration: none;
}

.btn-social {
    display: flex;
    flex-direction: row;
    gap: 7.5px;
    align-items: center;
    padding: 10px;
}

    .btn-social:hover {
        box-shadow: inset 1000px 1000px 1000px 1000px rgba(0, 0, 0, 0.025);
        color: #222222;
    }

    .btn-social div {
        flex: 0 0 150px;
        text-align: left;
        white-space: nowrap;
    }

    .btn-social .social-icon {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        display: block;
    }



.account-form-validation {
    color: #a70000;
}

    .account-form-validation ul {
        margin: 0;
        padding: 0;
    }

        .account-form-validation ul li {
            margin: 5px 0;
            padding: 0 5px;
            list-style: none;
        }

.account-link {
    margin: 5px 0;
}

    .account-link a {
        margin: 0;
        color: var(--primary);
        text-decoration: none;
    }

/* Common classes */
.form-horizontal {
    flex: 0 0;
    display: flex;
    flex-direction: column;
}

.form-group {
    flex: 0 0;
    display: flex;
    flex-direction: column;
    padding: 7.5px 0;
}

    .form-group:last-of-type {
        padding: 7.5px 0 0;
    }

.form-field {
    flex: 0 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .form-field .form-control {
        padding-right: 38px !important;
        z-index: 1;
    }

    .form-field .field-reveal {
        position: absolute;
        display: block;
        width: 30px;
        height: 30px;
        top: 5px;
        right: 8px;
        z-index: 2;
        opacity: 0.35;
        background-color: #ffffff;
        background-size: 21px 21px;
        background-position: center center;
        background-repeat: no-repeat;
        background-image: url(../eye.svg);
        cursor: pointer;
    }

        .form-field .field-reveal:hover {
            opacity: 0.5;
        }

        .form-field .field-reveal.on {
            background-image: url(../eye-off.svg);
        }

input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control {
    margin: 0;
    padding: 0 10px;
    border: none;
    box-shadow: none;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
    height: 40px;
}

input:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-size-adjust: none;
    -webkit-text-fill-color: #222222;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
    border: none;
    outline: rgba(0, 0, 0, 0.15);
    transition: background-color 5000s ease-in-out 0s;
}

::placeholder {
    color: #cccccc;
}

.no-select {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.error-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

    .error-messages .error-message {
        color: #a70000;
    }

.mfa-provisioning {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .mfa-provisioning .mfa-provisioning-description {
        display: flex;
        margin: 0 0 15px;
    }

    .mfa-provisioning .mfa-instructions-section {
        display: flex;
        flex-direction: column;
        box-shadow: 0 0 0 1px #eeeeee;
        border-radius: 5px;
        overflow: hidden;
    }

        .mfa-provisioning .mfa-instructions-section.is-expanded {
            box-shadow: 0 0 0 1px #dddddd;
        }

        .mfa-provisioning .mfa-instructions-section .mfa-instructions-title {
            flex: 0 0 40px;
            display: flex;
            align-items: center;
            line-height: 40px;
            padding: 0 15px;
            font-family: 'Poppins';
            font-size: 13px;
            color: #999999;
            cursor: pointer;
        }

        .mfa-provisioning .mfa-instructions-section.is-expanded .mfa-instructions-title {
            color: #333333;
            font-weight: 600;
        }

        .mfa-provisioning .mfa-instructions-section .mfa-instructions-description {
            display: flex;
            flex-direction: column;
        }

            .mfa-provisioning .mfa-instructions-section .mfa-instructions-description[hidden] {
                display: none;
            }

            .mfa-provisioning .mfa-instructions-section .mfa-instructions-description ul {
                display: flex;
                flex-direction: column;
                gap: 10px;
                list-style: none;
                padding: 15px;
                margin: 0;
                box-shadow: inset 0 1px 0 0 #dddddd;
                background-color: #fefefe;
            }

                .mfa-provisioning .mfa-instructions-section .mfa-instructions-description ul li {
                    display: block;
                }

                    .mfa-provisioning .mfa-instructions-section .mfa-instructions-description ul li code {
                        display: flex;
                        padding: 15px;
                        border-radius: 5px;
                        background-color: #fdfdfd;
                        box-shadow: inset 0 0 0 1px #dddddd;
                    }

                    .mfa-provisioning .mfa-instructions-section .mfa-instructions-description ul li a {
                        display: inline-flex;
                        color: #00774f;
                    }

                    .mfa-provisioning .mfa-instructions-section .mfa-instructions-description ul li .mfa-qr-image {
                        flex: 1 1;
                        display: flex;
                        flex-direction: column;
                        padding: 5px;
                        border-radius: 5px;
                        background-color: #ffffff;
                        box-shadow: inset 0 0 0 1px #dddddd;
                    }

.mfa-recovery-codes {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background-color: #fdfdfd;
    box-shadow: inset 0 0 0 1px #dddddd;
    margin: 0 0 30px;
}

    .mfa-recovery-codes ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mfa-recovery-codes li {
        flex: 0 0 30px;
        display: flex;
        flex-direction: column;
        font-family: monospace;
        line-height: 30px;
        text-align: center;
        box-shadow: inset 0 1px 0 0 #eeeeee;
    }

        .mfa-recovery-codes li:first-of-type {
            box-shadow: unset;
        }

.form-checkbox.mfa-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .form-checkbox.mfa-checkbox span {
        margin: 2px 0 0;
        line-height: 18px;
    }

    .form-checkbox.mfa-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border: 1px solid #b5bbc3;
        border-radius: 3px;
        background: #ffffff;
        cursor: pointer;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .form-checkbox.mfa-checkbox input[type="checkbox"]::after {
            content: '';
            width: 10px;
            height: 10px;
            background: transparent;
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 12%, 80% 0, 43% 62%);
            transform: scale(0);
            transition: transform 0.1s ease-in;
        }

        .form-checkbox.mfa-checkbox input[type="checkbox"]:checked {
            border-color: #00774f;
            /*background: #00a871;*/
        }

            .form-checkbox.mfa-checkbox input[type="checkbox"]:checked::after {
                background: var(--primary);
                transform: scale(1);
            }

.trusted-device-description {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0 30px;
}

    .trusted-device-description p {
        margin: 0;
        color: #888888;
        font-weight: 300;
        font-size: 13px;
        letter-spacing: 0.35px;
    }

        .trusted-device-description p.device-warning {
            font-weight: 400;
        }

.recovery-code-flow {
    color: #888888;
    letter-spacing: 0.35px;
    font-weight: 300;
    font-size: 13px;
}

    .recovery-code-flow a {
        font-weight: 500;
        color: var(--primary);
        text-decoration: none;
    }

/* ============================================
   RESPONSIVE / MOBILE STYLES
   ============================================ */
/* Tablets and small desktops */
@media (max-width: 768px) {
    .body-content {
        max-width: 100%;
        box-shadow: none;
    }

    body:before {
        display: none;
    }

    .account-block {
        padding: 20px;
    }
}
/* Mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .account-block {
        padding: 15px;
    }

    .acount-block-header {
        padding: 0 0 20px;
    }

        .acount-block-header .acount-block-header-logo a img {
            height: 32px;
        }

    .account-block-title {
        font-size: 18px;
    }

    .account-block-subtitle {
        font-size: 12px;
        margin: 0 0 20px;
    }

    .account-block-body-separator {
        padding: 20px 0;
    }

    .form-group {
        padding: 6px 0;
    }

    .btn {
        height: 44px; /* Larger tap target */
        font-size: 14px;
    }

    .btn-social {
        padding: 10px;
        gap: 10px;
        justify-content: center;
    }

        .btn-social div {
            flex: 0 0 150px;
            font-size: 14px;
        }

        .btn-social .social-icon {
            flex: 0 0 22px;
            width: 22px;
            height: 22px;
        }

    input[type="text"].form-control,
    input[type="email"].form-control,
    input[type="password"].form-control {
        height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .acount-block-footer {
        font-size: 11px;
        padding: 20px 0 0;
    }
}
/* Very small phones */
@media (max-width: 360px) {
    .account-block {
        padding: 12px;
    }

    .btn-social div {
        flex: 0 0 150px;
        font-size: 13px;
    }

    .account-block-body-separator .account-block-body-separator-text {
        font-size: 11px;
        gap: 10px;
    }
}
/* Landscape orientation on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .acount-block-body {
        justify-content: flex-start;
    }

    .account-block {
        padding: 15px 20px;
    }

    .account-block-body-separator {
        padding: 15px 0;
    }

    .account-block-subtitle {
        margin: 0 0 15px;
    }
}
/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* iOS tap target guideline */
    }

    .btn-social {
        min-height: 48px;
    }

    .field-reveal {
        width: 44px !important;
        height: 44px !important;
        top: 0 !important;
        right: 0 !important;
    }
}
