/* CoreShop login styling, scoped to the CoreService authentication pages. */
.auth-main { min-height: 100svh; }
.login-page {
    position: relative; isolation: isolate; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 28px; background: #f5f5f8;
    background-image: radial-gradient(ellipse at 25% 75%, color-mix(in srgb, var(--service-accent) 14%, transparent), transparent 52%);
}
.login-panel { position: relative; isolation: isolate; min-width: 0; width: min(460px, 100%); }
.login-panel::before {
    content: ""; position: absolute; z-index: -1; inset: 14px -12px -12px 14px;
    background: var(--service-accent); border-radius: 24px; transform: rotate(2deg); pointer-events: none;
}
.login-card {
    position: relative; padding: 34px 36px 30px; background: #09090b;
    border: 1px solid #242428; border-radius: 22px; color: #f8f8fa;
    box-shadow: 0 24px 64px #11111316;
}
.login-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.login-brand { color: var(--service-accent); font-size: 13px; letter-spacing: .3px; font-weight: 600; }
.login-access-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--service-accent) 25%, #242428); border-radius: 50%; color: var(--service-accent); background: color-mix(in srgb, var(--service-accent) 4%, transparent); }
.login-access-icon svg { width: 18px; height: 18px; }
.login-card h1 { margin: 0 0 11px; font-size: 34px; font-weight: 500; letter-spacing: -1px; line-height: 1.2; color: #fff; }
.login-subtitle { margin: 0 0 29px; max-width: 290px; font-size: 15px; line-height: 1.6; color: #aaaab5; }
.login-page .form-stack { display: flex; flex-direction: column; gap: 21px; }
.login-page .field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.login-page .field label { font-size: 15px; font-weight: 500; color: #e6e6ec; }
.login-page .field input {
    width: 100%; min-width: 0; min-height: 50px; padding: 13px 14px;
    border: 1px solid #35353d; border-radius: 9px; background: #1a1a1f; color: #fff;
    font: inherit; font-size: 16px; line-height: 1.4; caret-color: var(--service-accent);
    color-scheme: dark; transition: border-color .15s, background .15s;
}
.login-page .field input::placeholder { color: #90909d; font-size: 15px; opacity: 1; }
.login-page .field input:focus { border-color: var(--service-accent); background: #1e1e24; outline: 2px solid color-mix(in srgb, var(--service-accent) 25%, transparent); outline-offset: 3px; }
.login-page .field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #1a1a1f inset; -webkit-text-fill-color: #fff; caret-color: var(--service-accent); }
.login-page .password-field { position: relative; }
.login-page .password-field input { padding-right: 78px; }
.login-page .password-toggle { position: absolute; right: 9px; top: 4px; min-height: 42px; padding: 0 10px; border: 0; background: transparent; color: #c0c0ca; border-radius: 6px; font-size: 13px; font-weight: 500; }
.login-page .password-toggle:hover { background: #303038; color: #fff; }
.login-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; margin-top: 3px; padding: 8px 11px 8px 17px; border: 1px solid var(--service-accent); border-radius: 9px; background: var(--service-accent); color: #001719; font: inherit; font-size: 15px; font-weight: 600; }
.login-submit:hover { background: color-mix(in srgb, var(--service-accent) 90%, #000); border-color: color-mix(in srgb, var(--service-accent) 90%, #000); }
.login-arrow { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0a1213; color: var(--service-accent); }
.login-arrow svg { width: 17px; height: 17px; }
.login-page button:focus-visible { outline: 2px solid var(--service-accent); outline-offset: 4px; }
.login-help { border-top: 1px solid #2b2b31; padding-top: 21px; margin: 26px 0 0; color: #aaaab5; font-size: 13px; line-height: 1.8; text-align: left; }
.login-help span { color: #d2d2db; }
.login-page .validation-summary-valid, .login-page .field-error:empty { display: none; }
.login-page .validation-summary ul { margin: 0; border-radius: 8px; background: #3b2225; border: 1px solid #673c42; color: #ffc3c3; font-size: 14px; line-height: 1.5; padding: 13px 16px 13px 30px; }
.login-page .field-error { color: #ffb4b4; font-size: 13px; }
.login-page .field-hint { color: #aaaab5; font-size: 13px; }
.login-page .field input.input-validation-error { border-color: #dc8787; }
@media (max-width: 699px) {
    .login-page { padding: 28px 24px 40px; }
    .login-card { padding: 29px 25px 25px; border-radius: 20px; }
    .login-panel::before { inset: 10px -7px -9px 10px; border-radius: 21px; transform: rotate(1.5deg); }
    .login-topline { margin-bottom: 28px; }
    .login-card h1 { font-size: 32px; }
    .login-subtitle { margin-bottom: 25px; }
}
@media (max-height: 650px) and (min-width: 700px) {
    .login-page { padding-top: 24px; padding-bottom: 36px; }
    .login-card { padding-top: 25px; padding-bottom: 24px; }
    .login-topline { margin-bottom: 22px; }
    .login-subtitle { margin-bottom: 23px; }
    .login-help { margin-top: 22px; padding-top: 17px; }
}
@media (prefers-reduced-motion: reduce) { .login-page .field input { transition: none; } }
