/* Auth pages layout (login, forgot password). Shared colours and components come from css/beyoung-theme.css */

html, body
{
    height: 100%;
}

#form1
{
    min-height: 100%;
    display: flex;
}

/* ---------- Brand panel ---------- */
.brand-panel
{
    flex: 1 1 46%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 60px;
    color: #fff;
    background: var(--by-primary-dark);
    background: var(--by-gradient-deep);
}

.brand-panel:before, .brand-panel:after
{
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.brand-panel:before
{
    width: 460px;
    height: 460px;
    right: -170px;
    top: -150px;
}

.brand-panel:after
{
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -130px;
}

.brand-panel > *
{
    position: relative;
    z-index: 1;
}

.brand-eyebrow
{
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.brand-title
{
    margin: 14px 0 16px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-text
{
    max-width: 400px;
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
}

.brand-note
{
    display: flex;
    max-width: 440px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.brand-note .fa
{
    margin: 2px 12px 0 0;
    font-size: 18px;
}

.brand-note strong
{
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    color: #fff;
}

/* ---------- Form panel ---------- */
.form-panel
{
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    background: #f3ecf5;
    background: radial-gradient(circle at 85% 12%, #f7dcec 0%, rgba(247, 220, 236, 0) 45%),
                radial-gradient(circle at 10% 92%, #e3d3ef 0%, rgba(227, 211, 239, 0) 50%),
                #f5f0f8;
}

.form-top
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #fff;
    box-shadow: 0 1px 0 #e8dfee, 0 4px 14px rgba(63, 20, 86, 0.06);
}

.form-top .logo img
{
    display: block;
    max-height: 62px;
    max-width: 100%;
}

.home-link
{
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.home-link .fa
{
    margin-right: 6px;
}

.form-body
{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card
{
    width: 100%;
    max-width: 460px;
    padding: 40px 40px 34px;
}

.auth-card h1
{
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--by-text);
}

.auth-sub
{
    margin: 0 0 28px;
    color: var(--by-text-muted);
}

.auth-card .by-btn
{
    margin-top: 6px;
}

.register-line
{
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid #ece7f0;
    text-align: center;
    color: var(--by-text-muted);
}

.register-line a
{
    font-weight: 600;
}

.form-footer
{
    margin: 0;
    padding: 0 32px 22px;
    text-align: center;
    font-size: 12px;
    color: #7d7287;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px)
{
    .brand-panel
    {
        padding: 44px 36px;
    }

    .brand-title
    {
        font-size: 26px;
    }
}

@media (max-width: 767px)
{
    #form1
    {
        display: block;
    }

    .brand-panel
    {
        display: none;
    }

    .form-panel
    {
        min-height: 100vh;
        padding: 16px;
        background: var(--by-primary-dark);
        background: linear-gradient(160deg, #3f1456 0%, #6d1d78 50%, #b0267f 100%);
    }

    .form-top
    {
        padding: 10px 14px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(31, 8, 43, 0.22);
    }

    .form-top .logo img
    {
        max-height: 44px;
    }

    .form-body
    {
        padding: 20px 0;
    }

    .auth-card
    {
        padding: 28px 20px 24px;
        border: 0;
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(31, 8, 43, 0.32);
    }

    .auth-card h1
    {
        font-size: 24px;
    }

    .form-footer
    {
        padding: 0 0 6px;
        color: rgba(255, 255, 255, 0.8);
    }
}

/* ---------- Welcome popup on Login_Guest.aspx (a Bootstrap modal) ---------- */
.auth-modal .modal-dialog
{
    max-width: 480px;
    margin: 12vh auto 0;
    padding: 0 16px;
}

.auth-modal .modal-content
{
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(31, 8, 43, 0.4);
}

.auth-modal .modal-header
{
    padding: 18px 24px;
    border: 0;
    background: var(--by-primary-dark);
    background: var(--by-gradient-deep);
}

.auth-modal .modal-title
{
    font-family: var(--by-font);
    font-size: 19px;
    font-weight: 600;
    color: #fff;
}

.auth-modal .modal-body
{
    padding: 24px;
}

.auth-modal-msg
{
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--by-primary);
}

.auth-modal .modal-footer
{
    padding: 0 24px 24px;
    border: 0;
    text-align: left;
}

.auth-modal .modal-footer .by-btn + .by-btn
{
    margin-left: 10px;
}

/* Login_Guest.aspx also loads bootstrap.css for that popup; keep its defaults off the form */
.auth-card h1
{
    font-family: inherit;
    line-height: 1.25;
}

.auth-card label
{
    margin-bottom: 0;
}
