﻿/* =====================================================================
   Sign-in page (Account/Login.aspx). Loaded after site.css; everything is prefixed lg-
   so the rest of the portal is not affected.
   ===================================================================== */
.lg-body { margin: 0; background: #fff; color: #0f172a; font-family: var(--bas-font, "Segoe UI", Roboto, Arial, sans-serif); -webkit-font-smoothing: antialiased; }
.lg-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, 1fr); }

/* ---------------------------------------------------------------- logo */
.lg-logo { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.lg-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 6px 14px rgba(79, 70, 229, .35)); }
.lg-logo b { display: block; font-size: 21px; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.lg-logo b span { font-weight: 500; margin-left: 5px; opacity: .72; letter-spacing: .04em; }
.lg-logo small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; }
.lg-logo-light b { color: #fff; } .lg-logo-light small { color: #93c5fd; }
.lg-logo-dark { margin-bottom: 34px; display: none; }
.lg-logo-dark b { color: #0f172a; } .lg-logo-dark small { color: #6366f1; }

/* ---------------------------------------------------------------- brand side */
.lg-brand {
    position: relative; overflow: hidden; color: #fff; padding: 40px 52px 32px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    background: linear-gradient(150deg, #081126 0%, #0d1a3d 45%, #16245a 100%);
}
.lg-aurora { position: absolute; inset: 0; pointer-events: none; }
.lg-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: lgFloat 18s ease-in-out infinite alternate; }
.lg-aurora i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -160px; background: #2563eb; }
.lg-aurora i:nth-child(2) { width: 460px; height: 460px; right: -160px; top: 30%; background: #7c3aed; animation-delay: -6s; opacity: .45; }
.lg-aurora i:nth-child(3) { width: 380px; height: 380px; left: 20%; bottom: -200px; background: #0891b2; animation-delay: -12s; opacity: .35; }
@keyframes lgFloat { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 10px) scale(.95); } }
.lg-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%);
}
.lg-hero { position: relative; z-index: 2; max-width: 560px; }
.lg-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #dbeafe; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.lg-pill i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.lg-brand h1 { color: #fff; font-size: 42px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 0; }
.lg-brand h1 span { background: linear-gradient(90deg, #93c5fd, #c4b5fd 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-lead { color: #b6c4de; font-size: 15.5px; line-height: 1.65; margin: 16px 0 0; max-width: 500px; }

/* product preview cards */
.lg-preview { position: relative; height: 196px; margin: 30px 0 6px; }
.lg-glass {
    position: absolute; border-radius: 16px; padding: 14px 16px; color: #fff;
    background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(2, 6, 23, .45); animation: lgRise .9s cubic-bezier(.2,.8,.2,1) both;
}
.lg-glass small { display: block; font-size: 11.5px; color: #b6c4de; margin-top: 2px; }
.lg-g1 { left: 0; top: 0; width: 250px; }
.lg-g1 .lg-g-h { display: flex; justify-content: space-between; font-size: 12px; color: #b6c4de; font-weight: 600; }
.lg-g1 em { font-style: normal; font-weight: 700; color: #6ee7b7; background: rgba(16,185,129,.16); padding: 1px 7px; border-radius: 6px; font-size: 11px; }
.lg-g1 > b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.lg-g1 svg { display: block; width: 100%; height: 44px; }
.lg-g2 { left: 268px; top: 18px; display: flex; gap: 12px; align-items: center; animation-delay: .15s; }
.lg-g2 b, .lg-g3 b { font-size: 14px; font-weight: 700; }
.lg-g-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(251,191,36,.18); color: #fcd34d; flex: none; }
.lg-g3 { left: 196px; top: 108px; display: flex; gap: 12px; align-items: center; animation-delay: .3s; }
.lg-ring { position: relative; width: 44px; height: 44px; flex: none; }
.lg-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.lg-ring circle { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 5; }
.lg-ring circle.v { stroke: #fbbf24; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; animation: lgRing 1.6s .6s cubic-bezier(.2,.8,.2,1) forwards; }
.lg-ring > b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px !important; }
.lg-draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: lgDraw 2s .4s ease forwards; }
@keyframes lgRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lgRing { to { stroke-dashoffset: 32.8; } }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }

.lg-feat { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.lg-feat li { display: flex; gap: 12px; align-items: flex-start; }
.lg-feat .fi { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; color: #93c5fd; background: rgba(147,197,253,.12); border: 1px solid rgba(147,197,253,.2); }
.lg-feat b { display: block; font-size: 13.5px; color: #fff; }
.lg-feat small { display: block; font-size: 12px; color: #9fb0cf; margin-top: 2px; line-height: 1.45; }

.lg-modules { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: 600px; }
.lg-modules span { font-size: 11.5px; font-weight: 600; color: #cbd5e1; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.lg-foot { position: relative; z-index: 2; font-size: 12px; color: #7f93b3; }

/* ---------------------------------------------------------------- form side */
.lg-side {
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px 20px; position: relative;
    background: radial-gradient(700px 400px at 100% 0%, rgba(99,102,241,.07), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(14,165,233,.06), transparent 60%), #fff;
}
.lg-card { width: 100%; max-width: 410px; animation: lgRise .6s cubic-bezier(.2,.8,.2,1) both; }
.lg-greet { margin: 0; font-size: 13px; font-weight: 700; color: #4f46e5; letter-spacing: .01em; }
.lg-card h2 { font-size: 27px; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 0; color: #0f172a; }
.lg-sub { color: #64748b; font-size: 14px; margin: 8px 0 26px; line-height: 1.55; }

.lg-f { margin-bottom: 18px; }
.lg-f > label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.lg-in { position: relative; }
.lg-in .lg-ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; z-index: 1; }
.lg-card .input {
    width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #0f172a;
    font-size: 15px; padding: 0 14px; transition: border-color .15s, box-shadow .15s, background .15s; box-sizing: border-box;
}
.lg-in .input { padding-left: 44px; }
.lg-in.pw-wrap .input { padding-right: 48px; }
.lg-card .input::placeholder { color: #a0aec0; }
.lg-card .input:hover { border-color: #cbd5e1; }
.lg-card .input:focus { outline: none; border-color: #6366f1; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.lg-in:focus-within .lg-ic { stroke: #4f46e5; }
.lg-card .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; border-radius: 9px; color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lg-card .pw-eye:hover { background: #eef2ff; color: #4f46e5; }
.lg-caps { display: none; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; font-weight: 600; color: #b45309; }
.lg-caps.on { display: flex; }
.lg-caps svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.lg-captcha .captcha-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lg-captcha img { height: 48px; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #fff; }
.lg-captcha .icon-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #64748b; border: 1.5px solid #e2e8f0; background: #fff; }
.lg-captcha .icon-btn:hover { color: #4f46e5; border-color: #c7d2fe; }

.lg-card .lg-btn {
    width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: 12px; cursor: pointer;
    font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #7c3aed 100%); background-size: 160% 100%; background-position: 0 0;
    box-shadow: 0 10px 24px -8px rgba(79,70,229,.6), inset 0 1px 0 rgba(255,255,255,.18);
    transition: background-position .4s, transform .15s, box-shadow .15s;
}
.lg-card .lg-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(79,70,229,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.lg-card .lg-btn:active { transform: none; }
.lg-card .lg-btn:focus-visible { outline: 3px solid rgba(99,102,241,.4); outline-offset: 2px; }
.lg-card .lg-btn.lg-busy { opacity: .75; cursor: progress; background-image: linear-gradient(110deg, #4f46e5 30%, #818cf8 50%, #4f46e5 70%); background-size: 200% 100%; animation: lgShimmer 1.1s linear infinite; }
@keyframes lgShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.lg-help { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; padding: 11px 13px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.lg-help svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.lg-help b { color: #334155; font-weight: 600; }

/* messages (classes set by the code-behind: alert alert-error / -info / -success) */
.lg-card .alert { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 20px; animation: lgShake .4s; }
.lg-card .alert-info, .lg-card .alert-success { animation: lgRise .4s both; }
@keyframes lgShake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* two-step views */
.lg-step-ic { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #4f46e5; margin-bottom: 16px; }
.lg-step-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-card .lg-code { height: 60px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .5em; padding-left: .5em; font-family: Consolas, "SF Mono", Menlo, monospace; }
.lg-card .lg-code::placeholder { color: #cbd5e1; letter-spacing: .5em; }
.lg-note { display: block; font-size: 12px; color: #94a3b8; margin-top: 7px; text-align: center; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: #64748b; text-decoration: none; }
.lg-back:hover { color: #4f46e5; }
.lg-tfa { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: start; padding: 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7; margin-bottom: 20px; }
.lg-qr { width: 148px; height: 148px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lg-qr img { width: 136px; height: 136px; }
.lg-steps { margin: 0; padding-left: 18px; font-size: 13px; color: #475569; line-height: 1.55; }
.lg-steps li + li { margin-top: 8px; }
.lg-key { margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px dashed #c7d2fe; font-family: Consolas, Menlo, monospace; font-size: 13px; font-weight: 700; color: #3730a3; letter-spacing: .08em; word-break: break-all; cursor: copy; }

.lg-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #eef2f7; }
.lg-trust span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; color: #94a3b8; font-weight: 600; }
.lg-trust svg { width: 14px; height: 14px; fill: none; stroke: #10b981; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-foot-m { display: none; margin-top: 24px; font-size: 12px; color: #94a3b8; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
    .lg-brand { padding: 36px 40px 28px; }
    .lg-brand h1 { font-size: 36px; }
    .lg-g2 { left: auto; right: 0; }
    .lg-g3 { left: 120px; }
}
@media (max-width: 1080px) {
    .lg-page { grid-template-columns: 1fr; }
    .lg-brand { display: none; }
    .lg-side { min-height: 100vh; padding: 32px 20px; }
    .lg-foot-m { display: block; }
    .lg-logo-dark { display: flex; }
}
@media (max-width: 480px) {
    .lg-card h2 { font-size: 23px; }
    .lg-tfa { grid-template-columns: 1fr; justify-items: center; }
    .lg-logo-dark { margin-bottom: 26px; }
}
@media (max-height: 760px) and (min-width: 1081px) {
    .lg-preview { display: none; }
    .lg-feat { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-aurora i, .lg-glass, .lg-card, .lg-draw, .lg-ring circle.v { animation: none !important; }
    .lg-draw { stroke-dashoffset: 0; }
    .lg-ring circle.v { stroke-dashoffset: 32.8; }
}
