/* ===========================================================
   signin.css &mdash; TIM4biz portal sign-in
   Loaded only by Intro/signin.aspx via HeadContent placeholder.
   =========================================================== */
/*rh*/
h1{color:white;}
.signin-shell {
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(0, 194, 168, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(31, 77, 216, .18), transparent 60%),
        #f5f7fb;
    padding: 56px 0 80px;
    min-height: calc(100vh - 160px);
}

.signin-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: stretch;
}

/* --- Aside / marketing panel --- */
.signin-aside {
    /*from join*/
    background: radial-gradient(1200px 600px at 0% 0%, rgba(99, 102, 241, 0.22), transparent 60%), linear-gradient(165deg, #0b1220 0%, #1a1b3a 55%, #2a1f5c 100%);
    /*    background: linear-gradient(160deg, #1f4dd8 0%, #173bb0 55%, #0e2a85 100%);
*/ color: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}
.signin-aside::after {
    content: "";
    position: absolute; inset: auto -20% -40% auto;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(0,194,168,.35), transparent 60%);
    filter: blur(10px);
}
.aside-inner { position: relative; z-index: 1; }
.aside-badge {
    display: inline-block;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 12px; border-radius: 999px;
    font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 22px;
}
.aside-title { font-size: 34px; line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
.aside-title span { color: #00c2a8; }
.aside-sub { font-size: 15px; line-height: 1.6; opacity: .9; margin: 0 0 28px; max-width: 44ch; }

.aside-points { list-style: none; padding: 0; margin: 0 0 32px; }
.aside-points li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; font-size: 14px; line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,.12);
}
.aside-points li:first-child { border-top: 0; }
.aside-points .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #00c2a8; margin-top: 7px; flex: 0 0 8px;
    box-shadow: 0 0 0 4px rgba(0,194,168,.18);
}

.aside-trust {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 18px; }
.trust-item span { font-size: 12px; opacity: .8; }

/* --- Sign-in card --- */
.signin-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px -20px rgba(15, 42, 133, .25),
                0 4px 12px rgba(15, 42, 133, .06);
/*   RH remove align-self: center;
*/}
.card-head h2 { margin: 0 0 6px; font-size: 24px; color: #0e2a85; }
.card-sub { margin: 0 0 22px; color: #5b6478; font-size: 14px; }

/* --- Alerts --- */
.alert {
    padding: 12px 14px; border-radius: 10px;
    font-size: 14px; margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert-info  { background: #eef3ff; border-color: #c9d6ff; color: #1f4dd8; }
.alert-error { background: #fdecec; border-color: #f5b8b8; color: #b3261e; }

/* --- SSO buttons --- */
.sso-row { display: grid; gap: 10px; margin-bottom: 18px; }
.btn-sso {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    font-weight: 600; font-size: 14px; cursor: pointer;
    border: 1px solid #d6dbe7; background: #fff; color: #1d2433;
    transition: background .15s, border-color .15s, transform .05s;
}
.btn-sso:hover { background: #f4f6fb; border-color: #b9c2d6; }
.btn-sso:active { transform: translateY(1px); }
.btn-sso-ms::before     { content: "▦  "; color: #0078d4; font-weight: 700; }
.btn-sso-google::before { content: "G  "; color: #4285f4; font-weight: 700; }

.divider {
    text-align: center; position: relative;
    margin: 18px 0 16px; color: #8a93a6; font-size: 12px;
    text-transform: uppercase; letter-spacing: .08em;
}
.divider::before, .divider::after {
    content: ""; position: absolute; top: 50%;
    width: calc(50% - 90px); height: 1px; background: #e3e7f0;
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* --- Fields --- */
.field { margin-bottom: 16px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #1d2433; margin-bottom: 6px; }
.input {
    width: 100%; padding: 11px 12px;
    border: 1px solid #d6dbe7; border-radius: 10px;
    font-size: 15px; background: #fff; color: #1d2433;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.input:focus {
    outline: none; border-color: #1f4dd8;
    box-shadow: 0 0 0 4px rgba(31, 77, 216, .15);
}
.field-error {
    display: inline-block; margin-top: 6px;
    color: #b3261e; font-size: 12px;
}
.link-muted { font-size: 12px; color: #1f4dd8; text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

/* --- Pure-CSS show/hide password ---
   The checkbox toggles the sibling TextMode=Password input via attribute selector.
   ASP.NET renders TextMode=Password as <input type="password">, and CSS cannot
   change input[type] &mdash; so we instead toggle a "showing" class via :checked
   and reveal the value through -webkit-text-security where supported.
*/
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 64px; }
.pw-toggle { position: absolute; opacity: 0; pointer-events: none; }
.pw-toggle-label {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    font-size: 12px; font-weight: 600; color: #1f4dd8;
    cursor: pointer; padding: 4px 6px; border-radius: 6px;
    user-select: none;
}
.pw-toggle-label:hover { background: #eef3ff; }
.pw-toggle:checked ~ .input { -webkit-text-security: none; }
.pw-toggle:checked ~ .pw-toggle-label::after { content: ""; }
.pw-toggle:checked ~ .pw-toggle-label { color: #0e2a85; }

/* --- Checkbox row --- */
.field-inline { margin: 4px 0 18px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: #1d2433; cursor: pointer; }
.check input[type=checkbox] { width: 16px; height: 16px; accent-color: #1f4dd8; }

/* --- Primary button --- */
.btn {
    display: inline-block; border: 0; cursor: pointer;
    font-weight: 700; font-size: 15px; padding: 13px 18px;
    border-radius: 10px; text-decoration: none; text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, #1f4dd8 0%, #00c2a8 130%);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(31, 77, 216, .55);
    transition: transform .05s, box-shadow .15s, filter .15s;
}
.btn-primary:hover  { filter: brightness(1.05); box-shadow: 0 14px 28px -10px rgba(31, 77, 216, .7); }
.btn-primary:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; }

/* --- Footer text --- */
.card-foot {
    margin: 18px 0 0; font-size: 14px; color: #5b6478; text-align: center;
}
.card-foot a { color: #1f4dd8; text-decoration: none; font-weight: 600; }
.card-foot a:hover { text-decoration: underline; }
.card-fineprint {
    margin: 14px 0 0; font-size: 11px; color: #8a93a6; text-align: center; line-height: 1.5;
}
.card-fineprint a { color: #8a93a6; text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .signin-grid { grid-template-columns: 1fr; gap: 28px; }
    .signin-aside { padding: 32px 28px; }
    .aside-title { font-size: 28px; }
    .signin-card { padding: 28px 22px; }
    .aside-trust { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 460px) {
    .signin-shell { padding: 24px 0 48px; }
    .aside-trust { grid-template-columns: 1fr; }
    .divider::before, .divider::after { width: calc(50% - 70px); }
}
