/* EMS account pages (sign in, register, manage account…) — BitProSoftTech
   Loaded after Bootstrap: restyles the Bootstrap classes used by ASP.NET Core Identity pages. */

body.auth {
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--text);
    --bs-link-color-rgb: 0, 113, 227;
    --bs-link-hover-color-rgb: 0, 119, 237;
    --bs-border-radius: 12px;
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth a { color: var(--accent); text-decoration: none; }
.auth a:hover { text-decoration: underline; }
.auth :focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--text); color: #fff !important; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Shell */
.auth-shell { display: flex; min-height: 100vh; }
.auth-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 32px 48px; }
.auth-content { width: 100%; max-width: 400px; }
.auth-is-centered .auth-top { max-width: 1120px; width: 100%; margin: 0 auto; border-bottom: 1px solid #ececf0; }
.auth-is-centered .auth-main { align-items: flex-start; padding-top: 56px; }
.auth-is-centered .auth-content { max-width: 960px; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 22px 32px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--muted) !important; }

/* Brand */
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; }
.auth-brand:hover { text-decoration: none !important; }
.auth-brand img { border-radius: 7px; }
.auth-brand span { display: flex; align-items: baseline; gap: 8px; }
.auth-brand b { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.auth-brand small { font-size: 12px; color: var(--muted); }
.auth-brand-light, .auth-brand-light small { color: #fff !important; }
.auth-brand-light small { opacity: .6; }
.auth-is-split .auth-brand-mobile { visibility: hidden; }
.auth-home { font-size: 14px; color: var(--muted) !important; }

/* Brand panel (split layout) */
.auth-aside {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    width: 44%; max-width: 620px; padding: 40px 56px; overflow: hidden; color: #f5f5f7;
    background:
        radial-gradient(700px 420px at 15% 110%, rgba(94, 92, 230, .55), transparent 70%),
        radial-gradient(620px 420px at 100% 0%, rgba(41, 151, 255, .45), transparent 70%),
        #000;
}
.auth-aside-body { max-width: 420px; }
.auth-aside h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; margin: 0 0 18px; }
.auth-aside p { color: var(--muted-dark); font-size: 19px; margin: 0; }
.auth-aside ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.auth-aside li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(48, 209, 88, .18); color: #30d158; flex: none; }
.auth-aside-foot { font-size: 13px; color: var(--muted-dark); opacity: .7; }

/* Headings */
.auth h1, .auth h2, .auth h3, .auth h4 { font-weight: 600; letter-spacing: -0.03em; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { font-size: 34px; margin: 0 0 6px; }
.auth-heading p { color: var(--muted); margin: 0; }
.auth-heading-center { text-align: center; }
.auth-heading-center .auth-form { margin-top: 28px; }

/* Forms */
.auth-form { display: grid; gap: 14px; }
.auth .form-control, .auth .form-select {
    min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
    font-size: 17px; color: var(--text); box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth .form-control:focus, .auth .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.auth .form-floating > .form-control { height: 58px; padding: 26px 16px 8px; }
.auth .form-floating > label { padding: 17px 16px; color: var(--muted); }
.auth .form-floating > .form-control:focus ~ label,
.auth .form-floating > .form-control:not(:placeholder-shown) ~ label { transform: scale(.8) translateY(-.6rem) translateX(.2rem); color: var(--muted); }
.auth .form-floating > .form-control:focus ~ label::after,
.auth .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background: transparent; }
.auth .form-control.input-validation-error { border-color: #d70015; }
.auth .form-label { font-size: 14px; font-weight: 500; color: #424245; }
.auth .form-check-input { width: 18px; height: 18px; margin-top: .15em; border-color: var(--line); }
.auth .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.auth .form-check-input:focus { box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.auth .form-check-label { font-size: 15px; color: #424245; }

.field-error, .auth .text-danger { display: block; margin-top: 6px; font-size: 13px; color: #d70015 !important; }
.field-error:empty { display: none; }
.auth-alert { padding: 12px 16px; border-radius: 12px; background: #fff0f3; color: #d70015; font-size: 15px; }
.auth-alert.validation-summary-valid { display: none; }
.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-hint { margin: -6px 0 2px; font-size: 13px; color: var(--muted); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.auth-row .form-check { margin: 0; }

/* Buttons */
.auth .btn { border-radius: 980px; font-weight: 500; letter-spacing: -0.01em; padding: 10px 22px; transition: background-color .2s ease, transform .2s ease; }
.auth .btn:active { transform: scale(.98); }
.auth .btn-lg { padding: 14px 26px; font-size: 17px; }
.auth .btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover); --bs-btn-active-bg: #006edb; --bs-btn-active-border-color: #006edb; --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); color: #fff !important; text-decoration: none !important; }
.auth .btn-outline-secondary { --bs-btn-color: var(--text); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--bg-alt); --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: #86868b; }
.auth .btn-danger { --bs-btn-bg: #d70015; --bs-btn-border-color: #d70015; }
.auth .btn-link { padding: 0; border: 0; border-radius: 0; color: var(--accent); text-decoration: none; vertical-align: baseline; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e5e5ea; }
.auth-external { display: grid; gap: 10px; }
.auth-switch { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #ececf0; text-align: center; color: var(--muted); }
.auth-small { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-terms { margin-top: 0; }

/* Built-in Identity pages (forgot password, confirm email, manage account…) */
.auth-is-centered .auth-content > h1 { font-size: 34px; margin-bottom: 8px; }
.auth-is-centered .auth-content h2 { font-size: 22px; margin: 8px 0 16px; }
.auth-is-centered .auth-content h3 { font-size: 20px; }
.auth-is-centered .auth-content hr { border-color: #d2d2d7; opacity: 1; margin: 16px 0 24px; }
.auth-is-centered .auth-content .form-floating,
.auth-is-centered .auth-content .mb-3 { margin-bottom: 14px !important; }
.auth-is-centered .auth-content p { color: #424245; }
.auth .alert { border: 0; border-radius: 12px; }
.auth .alert-success { background: var(--green-soft); color: var(--green); }
.auth .alert-danger { background: #fff0f3; color: #d70015; }
.auth .alert-info { background: var(--accent-soft); color: #0058b9; }
.auth .table { --bs-table-border-color: #ececf0; }

/* Manage account navigation */
.auth .nav-pills { gap: 4px; }
.auth .nav-pills .nav-link { color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.auth .nav-pills .nav-link:hover { background: var(--bg-alt); text-decoration: none; }
.auth .nav-pills .nav-link.active { background: var(--text); color: #fff; }

/* Responsive */
@media (max-width: 980px) {
    .auth-aside { display: none; }
    .auth-is-split .auth-brand-mobile { visibility: visible; }
}

@media (max-width: 560px) {
    body.auth { font-size: 16px; }
    .auth-top { padding: 16px; }
    .auth-main { padding: 16px 16px 32px; align-items: flex-start; }
    .auth-is-split .auth-main { padding-top: 32px; }
    .auth-is-centered .auth-main { padding-top: 32px; }
    .auth-brand small { display: none; }
    .auth-heading h1 { font-size: 30px; }
    .auth-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .auth .btn, .auth .form-control { transition: none; }
}

.auth-top-links { display: flex; align-items: center; gap: 20px; }
.auth-top-links form { margin: 0; }
.auth .btn-link.auth-home { font-size: 14px; color: var(--muted); }

/* Live demo logins (sign-in page) */
.auth-demo { margin-top: 28px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #ececf0; }
.auth-demo h2 { font-size: 17px; margin: 0 0 4px; }
.auth-demo p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.auth-demo code { color: var(--text); font-size: 14px; }
.auth-demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.auth-demo-login {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
    padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 12px; background: var(--bg);
    font: inherit; text-align: left; cursor: pointer; color: var(--text);
}
.auth-demo-login:hover { border-color: var(--accent); background: #fff; }
.auth-demo-login b { font-size: 15px; font-weight: 600; }
.auth-demo-login span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.auth-demo-list form { margin: 0; display: flex; }
.auth-demo-list .auth-demo-login { width: 100%; }
