﻿/* Inline CRM login - redesign. Palette taken from the Inline Data Systems logo (amber + graphite). */
:root {
    --brand: #f59e0b;
    --brand-600: #d97706;
    --brand-ink: #92400e;
    --navy: #0f1b34;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --radius: 14px;
}
html, body
{
    margin: 0px;
    padding: 0px;
    min-height: 100%;
    height: 100%;
    font-family: Inter, "Segoe UI", system-ui, Tahoma, sans-serif;
    font-size: 14px;
    color: var(--text);
    background-color: #1b2d57;
    /* static photo; the code-behind overrides it with the Bing image unless the company hides the dynamic background */
    background-image: url(../../customerPortal/resources/images/loginBackground2.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
/* darkens whatever photo the code-behind injects so the card stays legible */
body::before
{
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 52, .35);
    z-index: 0;
}
form { position: relative; z-index: 1; }
.outer-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    top: 8vh;
    box-sizing: border-box;
    padding: 34px 34px 24px;
    background-color: rgba(255, 255, 255, .96);
    border-radius: var(--radius);
    border-top: 4px solid var(--brand);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    animation: loginRise .5s ease both;
}
@keyframes loginRise { from { opacity: 0; transform: translateY(14px); } }
.inner-wrapper
{
    text-align: left;
    color: var(--text);
    background-color: transparent;
}
.inner-wrapper h1 { font-size: 22px; margin: 0; color: var(--navy); }
.welcome { font-size: 24px; font-weight: 700; margin: 14px 0 4px; color: var(--navy); }
.welcome-sub { color: var(--muted); margin: 0 0 22px; }
.solid-hr
{
    border-width: 0px;
    background-color: var(--line);
    height: 1px;
    margin: 14px 0;
}
.title1
{
    font-size: 18pt;
    color: var(--navy);
    font-weight: bold;
}
form a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
form a:hover { color: var(--brand-600); text-decoration: underline; }
.imgContainer
{
    width: 100%;
    display: table;
}
#imgDiv
{
     min-height: 64px;
     text-align: center;
     vertical-align: middle;
     display: table-cell;
}
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: .02em; }
.field input[type="text"], .field input[type="password"]
{
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font: inherit;
    font-size: 14.5px;
    color: var(--text);
    background: #f9fafb;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input[type="text"]:focus, .field input[type="password"]:focus
{
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .2);
}
.field .req { position: absolute; right: 12px; bottom: 11px; color: #dc2626; font-weight: 700; }
.login-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.login-actions .rbSkinned, .login-actions .RadButton { border-radius: 10px !important; }
#btnLogin
{
    background: #fbbf24 !important;
    border: 0 !important;
    color: #1f1300 !important;
    font-weight: 700;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: background-color .15s;
}
#btnLogin:hover, #btnLogin:focus, #btnLogin:active { transform: none !important; box-shadow: none !important; background: #f59e0b !important; }
.login-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.login-footer img { max-width: 120px; height: auto; opacity: .95; }
#lblErrorMessage
{
    display: block;
    margin-top: 12px;
    color: #b91c1c !important;
    font-weight: 600;
    text-align: center;
}
.roundedCorners
{
    border-radius: 10px;
    margin-bottom: 14px;
}
#picInfoDiv {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: rgba(0,0,0,.5);
    width: 260px;
    color: #ddd;
    padding: 15px;
    font-family: Arial,Helvetica,Sans-Serif;
    text-align: left;
    display: inline-block;
    padding-top: 30px;
}
#picInfoDescription {
    font-size: 17px;
    color: #ddd;
    text-decoration: none;
}
#picInfoDescription:hover {
    text-decoration: underline;
}
#picInfoCopyright {
    font-size: 10px;
}
#picInfoBtn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    color: #ddd;
    background-color: rgba(0,0,0,.5);
    width: 100px;
    text-align:center;
}
#picInfoBtn div {
    border-width: 0px;
    padding: 0px;
    text-align:center;
    font-weight:normal;
    font-size: 13px;
    opacity: .8;
}

/* ---- split layout: brand pane on the left, the Bing photo on the right with the card centred over it ---- */
:root { --hero-w: 25%; }
body { background-position: right center; }
body::before { left: var(--hero-w); background: rgba(15, 27, 52, .15); }
.login-hero
{
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--hero-w);
    box-sizing: border-box;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: #17284d;
    z-index: 2;
}
.hero-brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; }
.hero-brand img { width: 36px; height: 36px; }
.hero-body h2 { font-size: 26px; line-height: 1.2; margin: 0 0 14px; max-width: 440px; font-weight: 800; }
.hero-body p { color: #b9c6e6; font-size: 15px; max-width: 420px; margin: 0 0 22px; }
.hero-body ul { list-style: none; padding: 0; margin: 0; }
.hero-body li { color: #dbe4fb; padding: 7px 0 7px 26px; position: relative; }
.hero-body li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); }
/* notice that the application is being given a new design */
.new-look { margin-top: 26px; padding: 14px 16px; max-width: 420px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.new-look-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #1f1300; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero-body .new-look p { margin: 0; max-width: none; color: #dbe4fb; font-size: 13.5px; line-height: 1.5; }
.new-look-inline { display: none; }
.hero-foot { color: #8e9bba; font-size: 12px; }
form { z-index: 3; }
.outer-wrapper
{
    position: fixed;
    width: 420px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    margin: 0;
    top: 50%;
    left: calc(var(--hero-w) + (100% - var(--hero-w)) / 2);
    transform: translate(-50%, -50%);
    animation: none;
}
#picInfoBtn { left: auto; right: 10px; }
#picInfoDiv { left: auto; right: 10px; }
@media (max-width: 860px)
{
    .login-hero { display: none; }
    body { background-position: center center; }
    .new-look-inline { display: block; margin: 0 0 14px; padding: 8px 12px; border-radius: 8px; background: #fff6e0; color: #8a4b05; font-size: 12.5px; line-height: 1.4; }
    body::before { left: 0; background: rgba(15, 27, 52, .35); }
    .outer-wrapper { left: 50%; }
    #picInfoBtn, #picInfoDiv { left: 10px; right: auto; }
}

/* ---- forgot password page (shares this stylesheet) ---- */
.ip-note { color: var(--muted); font-size: 12px; margin: -6px 0 18px; }
.login-actions input[type="submit"]
{
    padding: 11px 24px;
    border: 0;
    border-radius: 10px;
    background: #fbbf24;
    color: #1f1300;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(245, 158, 11, .35);
    transition: transform .12s, box-shadow .12s;
}
.login-actions input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(245, 158, 11, .4); }
#lblErrorMessage.form-message { color: var(--text) !important; background: #fff6e0; border-left: 3px solid var(--brand); border-radius: 6px; padding: 10px 12px; text-align: left; }
#lblErrorMessage.form-message:empty { display: none; }

/* "New look - Coming Soon" notice: what is changing and why it helps */
.new-look-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.new-look-head .new-look-badge { margin-bottom: 0; }
.new-look-soon { color: #fbbf24; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.hero-body .new-look-list { margin: 10px 0 0; padding: 0; list-style: none; }
.hero-body .new-look-list li { padding: 5px 0 5px 18px; color: #c6d2ef; font-size: 12.5px; line-height: 1.45; }
.hero-body .new-look-list li::before { top: 11px; width: 6px; height: 6px; background: var(--brand); box-shadow: none; }
.hero-body .new-look-list b { color: #fff; font-weight: 700; }
.new-look-inline b { color: #7a4a06; }

/* shorter windows: drop the generic feature list so the "coming soon" notice fits, and let the pane scroll as a last resort */
.login-hero { overflow-y: auto; }
@media (max-height: 840px) {
    .hero-body > ul:not(.new-look-list), .hero-body > p { display: none; }
    .hero-body h2 { font-size: 22px; margin-bottom: 4px; }
    .new-look { margin-top: 14px; }
}

.hero-body .new-look .new-look-tour { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); color: #fbbf24; font-size: 12.5px; line-height: 1.45; }
.hero-body .new-look .new-look-tour b { color: #fff; }

/* the notice reads as short single lines where the pane is wide enough; narrower windows let it wrap */
.hero-body .new-look .new-look-list li { font-size: 12.5px; }
@media (min-width: 1280px) {
    .hero-body .new-look p, .hero-body .new-look .new-look-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
