﻿/***************************************************************/
/* ETFREPORTING - ACCOUNT / AUTHENTICATION LAYOUT              */
/* Shared by login, signin, register, password reset, etc.     */
/***************************************************************/

:root {
    --account-bg: #f4f7f9;
    --account-surface: #ffffff;
    --account-surface-soft: #f8fafb;
    --account-border: #dde5eb;
    --account-border-focus: #9aaebb;
    --account-title: #263746;
    --account-text: #526171;
    --account-muted: #7b8794;
    --account-accent: #c9a227;
    --account-accent-dark: #a9851d;
    --account-primary: #2f4858;
    --account-primary-hover: #243b49;
    --account-danger: #b64c4c;
    --account-radius: 14px;
    --account-shadow: 0 18px 45px rgba(31, 45, 61, .10);
}

html,
body.account-page {
    min-height: 100%;
}

body.account-page {
    margin: 0;
    color: var(--account-text);
    background: radial-gradient(circle at 18% 18%, rgba(201, 162, 39, .08), transparent 26rem), linear-gradient(145deg, #f8fafb 0%, var(--account-bg) 58%, #eef3f6 100%);
    font-family: "Lato", Arial, sans-serif;
}

/***************************************************************/
/* PAGE SHELL                                                  */
/***************************************************************/

.account-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 36px 20px;
}

.account-shell-inner {
    width: 100%;
    max-width: 460px;
}

/***************************************************************/
/* BRAND                                                       */
/***************************************************************/

.account-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 22px;
    color: var(--account-title);
    text-decoration: none;
}

    .account-brand:hover,
    .account-brand:focus {
        color: var(--account-title);
        text-decoration: none;
    }

.account-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--account-border);
    border-radius: 13px;
    box-shadow: 0 5px 15px rgba(31,45,61,.07);
}

    .account-brand-mark img {
        display: block;
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

.account-brand-name {
    font-size: 1.18em;
    font-weight: 700;
    letter-spacing: -.01em;
}

/***************************************************************/
/* CARD                                                        */
/***************************************************************/

.account-card {
    overflow: hidden;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    box-shadow: var(--account-shadow);
}

    .account-card::before {
        display: block;
        width: 100%;
        height: 4px;
        content: "";
        background: linear-gradient(90deg, var(--account-primary), var(--account-accent));
    }

.account-card-header {
    padding: 28px 32px 18px;
    text-align: center;
}

.account-heading h1,
.account-heading h2 {
    margin: 0;
    color: var(--account-title);
    font-size: 1.65em;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-transform: none;
}

.account-heading p {
    margin: 8px 0 0;
    color: var(--account-muted);
    font-size: .94em;
    line-height: 1.5;
}

.account-card-body {
    padding: 10px 32px 30px;
}

.account-card-footer {
    padding: 17px 32px;
    color: var(--account-muted);
    background: var(--account-surface-soft);
    border-top: 1px solid var(--account-border);
    font-size: .88em;
    text-align: center;
}

.account-page-footer {
    margin-top: 18px;
    color: #8c98a4;
    font-size: .78em;
    text-align: center;
}

/***************************************************************/
/* FORM CONTRACT                                               */
/* Intentionally generic for every account form.               */
/***************************************************************/

.account-form,
.account-form form {
    width: 100%;
}

    .account-form .form-group,
    .account-form .input-group {
        width: 100%;
        margin-bottom: 18px;
    }

    .account-form label {
        margin-bottom: 6px;
        color: var(--account-title);
        font-size: .84em;
        font-weight: 650;
    }

    .account-form .form-control {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        color: var(--account-title);
        background: #ffffff;
        border: 1px solid #d7e0e7;
        border-radius: 8px;
        box-shadow: none;
        font-size: .94em;
        transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    }

        .account-form .form-control:focus {
            z-index: 2;
            background: #ffffff;
            border-color: var(--account-border-focus);
            outline: 0;
            box-shadow: 0 0 0 3px rgba(94, 124, 139, .12);
        }

    .account-form .input-group-addon,
    .account-form .input-group-btn > .btn {
        min-width: 42px;
        color: #788796;
        background: #f7f9fb;
        border-color: #d7e0e7;
    }

    .account-form .checkbox,
    .account-form .radio {
        color: var(--account-text);
        font-size: .88em;
        font-weight: 400;
    }

    .account-form .help-block,
    .account-form .field-validation-error,
    .account-form .validation-summary-errors {
        color: var(--account-danger);
        font-size: .82em;
    }

        .account-form .validation-summary-errors ul {
            margin: 0 0 16px;
            padding-left: 18px;
        }

    /***************************************************************/
    /* ACCOUNT BUTTONS - GENERIC CONTRACT                          */
    /* Bootstrap owns btn-group / btn-group-justified layout.      */
    /* We only own the visual language of the buttons.              */
    /***************************************************************/

    .account-form .btn,
    .account-form a.btn,
    .account-form button.btn,
    .account-form input[type="submit"].btn {
        min-height: 44px;
        padding: 10px 16px;
        border-radius: 8px;
        font-family: inherit;
        font-size: .92em;
        font-weight: 650;
        line-height: 1.2;
        text-align: center;
        transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    }

    /* Primary action */

    .account-form .btn-primary,
    .account-form .btn-success,
    .account-form .btn-info {
        color: #ffffff;
        background-color: var(--account-primary);
        border-color: var(--account-primary);
        box-shadow: 0 4px 10px rgba(47, 72, 88, .13);
    }

        .account-form .btn-primary:hover,
        .account-form .btn-primary:focus,
        .account-form .btn-success:hover,
        .account-form .btn-success:focus,
        .account-form .btn-info:hover,
        .account-form .btn-info:focus {
            color: #ffffff;
            background-color: var(--account-primary-hover);
            border-color: var(--account-primary-hover);
        }

    /* Secondary action */

    .account-form .btn-default,
    .account-form .btn-secondary {
        color: var(--account-text);
        background-color: #ffffff;
        border-color: var(--account-border);
        box-shadow: none;
    }

        .account-form .btn-default:hover,
        .account-form .btn-default:focus,
        .account-form .btn-secondary:hover,
        .account-form .btn-secondary:focus {
            color: var(--account-title);
            background-color: #f6f8fa;
            border-color: #cad5de;
        }

    /* Single primary action */

    .account-form .btn-block {
        width: 100%;
    }

/*
 * Generic action row for every Account form.
 * One contract only: all direct buttons share the available width equally.
 */
.account-actions {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
}

    .account-actions > .btn,
    .account-actions > a.btn,
    .account-actions > button.btn,
    .account-actions > input.btn {
        display: inline-flex;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        align-items: center;
        justify-content: center;
        float: none;
        text-align: center;
    }

/*
 * IMPORTANT:
 * Do not redefine display, width, float or table-layout on
 * .btn-group or .btn-group-justified. Bootstrap manages them.
 * This prevents Login / Signin / Register from affecting each other.
 */

.account-form .btn-group,
.account-form .btn-group-justified {
    margin-top: 8px;
}


/***************************************************************/
/* LINKS                                                       */
/***************************************************************/

.account-form a,
.account-card-footer a {
    color: #526f82;
    font-weight: 600;
    text-decoration: none;
}

    .account-form a:hover,
    .account-form a:focus,
    .account-card-footer a:hover,
    .account-card-footer a:focus {
        color: var(--account-accent-dark);
        text-decoration: none;
    }

/***************************************************************/
/* LEGACY COMPATIBILITY                                        */
/* Allows existing partials to migrate progressively.          */
/***************************************************************/

.panel-signin {
    margin: 0;
}

    .panel-signin p {
        color: inherit;
    }

.form-signin {
    width: 100%;
}

    .form-signin .form-signin-heading,
    .form-signin .checkbox {
        margin-bottom: 10px;
    }

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-control:focus {
        z-index: 2;
    }

    .form-signin .input-group {
        width: 100%;
        margin-bottom: 18px;
    }

.account-wall {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.login-title {
    display: block;
    color: var(--account-title);
    font-size: 1em;
    font-weight: 600;
}

.profile-img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
}

.need-help,
.new-account {
    display: block;
    margin-top: 12px;
}

/***************************************************************/
/* COMMON ACCOUNT HELPERS                                      */
/***************************************************************/

.account-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.account-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

    .account-form-actions.is-stacked {
        flex-direction: column;
    }

        .account-form-actions.is-stacked > .btn {
            width: 100%;
        }

.account-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--account-muted);
    font-size: .76em;
    text-transform: uppercase;
}

    .account-separator::before,
    .account-separator::after {
        flex: 1 1 auto;
        height: 1px;
        content: "";
        background: var(--account-border);
    }

/***************************************************************/
/* RESPONSIVE                                                  */
/***************************************************************/

@media (max-width: 520px) {
    .account-shell {
        align-items: flex-start;
        padding: 22px 14px;
    }

    .account-shell-inner {
        max-width: 100%;
    }

    .account-brand {
        margin-bottom: 16px;
    }

    .account-brand-mark {
        width: 44px;
        height: 44px;
    }

        .account-brand-mark img {
            width: 31px;
            height: 31px;
        }

    .account-card-header {
        padding: 24px 20px 14px;
    }

    .account-card-body {
        padding: 10px 20px 24px;
    }

    .account-card-footer {
        padding: 15px 20px;
    }

    .account-heading h1,
    .account-heading h2 {
        font-size: 1.45em;
    }

    .account-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .account-form .btn-group-justified {
        display: block;
        width: 100%;
    }

        .account-form .btn-group-justified > .btn,
        .account-form .btn-group-justified > .btn-group {
            display: block;
            width: 100%;
            margin-bottom: 7px;
        }
}


/***************************************************************/
/* RECAPTCHA                                                   */
/***************************************************************/

.account-recaptcha {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 18px 0 22px;
}

    .account-recaptcha .g-recaptcha {
        max-width: 100%;
        transform-origin: left top;
    }


/***************************************************************/
/* GENERIC RESPONSIVE ACTIONS                                  */
/***************************************************************/


@media (max-width: 360px) {
    .account-recaptcha .g-recaptcha {
        transform: scale(.88);
        margin-bottom: -10px;
    }
}

@media (max-width: 520px) {
    .account-actions {
        flex-direction: column;
    }

        .account-actions > .btn,
        .account-actions > a.btn,
        .account-actions > button.btn,
        .account-actions > input.btn {
            width: 100%;
        }
}


/***************************************************************/
/* ACCOUNT SECONDARY LINK                                      */
/***************************************************************/

.account-secondary-link {
    margin-top: 20px;
    text-align: right;
}


/***************************************************************/
/* ACCOUNT MESSAGE / CONFIRMATION                              */
/***************************************************************/

.account-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.account-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--account-primary);
    background: #eef3f6;
    border: 1px solid var(--account-border);
    border-radius: 50%;
    font-size: 1.25em;
    box-shadow: 0 3px 8px rgba(47, 72, 88, .08);
}

.account-message-success {
    color: #258457;
    background: #edf8f2;
    border-color: #d5eadf;
}

.account-message-warning {
    color: #9a7420;
    background: #fbf6e8;
    border-color: #eee1b8;
}

.account-message-error {
    color: var(--account-danger);
    background: #fdf1f1;
    border-color: #f0d5d5;
}
