:root {
    --auth-teal: #449297;
    --auth-teal-dark: #2f7f84;
    --auth-border: #d8e5e6;
    --auth-text: #263f46;
    --auth-muted: #73878c;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body.sed-auth-body {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 84% 10%, rgba(146, 201, 200, .24), transparent 28%),
        linear-gradient(135deg, #fafcfc 0%, #edf5f5 100%);
}

.sed-auth-shell {
    width: min(1180px, 100%);
    min-height: min(700px, calc(100vh - 64px));
    display: grid;
    grid-template-columns: 52% 48%;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(50, 77, 82, .13);
}

.sed-auth-brand {
    position: relative;
    padding: 52px 56px 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 94% 13%, rgba(255,255,255,.16), transparent 26%),
        linear-gradient(145deg, #247f85 0%, #42a0a5 54%, #59adb0 100%);
}

.sed-auth-brand::before,
.sed-auth-brand::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.15);
}

.sed-auth-brand::before {
    width: 360px;
    height: 360px;
    right: -175px;
    top: -145px;
    border-radius: 50%;
}

.sed-auth-brand::after {
    width: 470px;
    height: 470px;
    left: -285px;
    bottom: -335px;
    border-radius: 45%;
    transform: rotate(27deg);
}

.sed-auth-brand-top,
.sed-auth-brand-content,
.sed-auth-brand-footer {
    position: relative;
    z-index: 2;
}

.sed-auth-logo {
    width: min(390px, 100%);
    line-height: 0;
}

.sed-auth-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.sed-auth-brand-description {
    margin-top: 22px;
    color: rgba(255,255,255,.94);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.sed-auth-brand-content {
    margin: 34px 0 28px;
}

.sed-auth-brand-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 3.35vw, 52px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 800;
}

.sed-auth-brand-content p {
    max-width: 475px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.96);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.sed-auth-brand-footer {
    color: rgba(255,255,255,.92);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.sed-auth-panel {
    padding: 66px 72px;
    display: flex;
    align-items: center;
    background: #fff;
}

.sed-auth-form-wrap {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.sed-auth-eyebrow {
    color: #24878c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
}

.sed-auth-form-wrap h2 {
    margin: 13px 0 0;
    color: #203a42;
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 800;
}

.sed-auth-subtitle {
    margin: 12px 0 30px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}

.sed-auth-error {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #efc9c9;
    border-radius: 11px;
    background: #fff5f5;
    color: #9c4e4e;
    font-size: 13px;
    font-weight: 600;
}

.sed-auth-field {
    display: block;
    margin-bottom: 18px;
}

.sed-auth-field > span {
    display: block;
    margin-bottom: 7px;
    color: #324c54;
    font-size: 12px;
    font-weight: 700;
}

.sed-auth-field input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid #cfdcde;
    border-radius: 12px;
    outline: none;
    background: #fbfdfd;
    color: #203a42;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.sed-auth-field input:focus {
    border-color: #449297;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(68,146,151,.10);
}

.sed-auth-submit {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #358d92, #59aeb2);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(68,146,151,.19);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sed-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(68,146,151,.24);
}

.sed-auth-security {
    margin-top: 19px;
    color: #8d9ca0;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 1050px) {
    body.sed-auth-body { padding: 22px; }
    .sed-auth-shell { grid-template-columns: 50% 50%; }
    .sed-auth-brand { padding: 44px 42px 38px; }
    .sed-auth-brand-description { font-size: 13px; }
    .sed-auth-brand-content h1 { font-size: 42px; }
    .sed-auth-brand-content p { font-size: 14px; }
    .sed-auth-brand-footer { font-size: 12px; }
    .sed-auth-panel { padding: 50px 46px; }
    .sed-auth-form-wrap h2 { font-size: 29px; }
}

@media (max-width: 800px) {
    body.sed-auth-body {
        padding: 14px;
        place-items: start center;
    }

    .sed-auth-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .sed-auth-brand {
        min-height: 430px;
        padding: 34px 30px 30px;
    }

    .sed-auth-logo { width: min(340px, 100%); }
    .sed-auth-brand-description { margin-top: 16px; font-size: 13px; }
    .sed-auth-brand-content { margin: 30px 0 24px; }
    .sed-auth-brand-content h1 { font-size: 38px; }
    .sed-auth-brand-content p { margin-top: 22px; font-size: 14px; }
    .sed-auth-brand-footer { font-size: 12px; }
    .sed-auth-panel { padding: 40px 30px 44px; }
    .sed-auth-form-wrap { max-width: none; }
    .sed-auth-form-wrap h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .sed-auth-brand-content h1 { font-size: 34px; }
    .sed-auth-brand-content p { font-size: 13px; }
    .sed-auth-brand-description { font-size: 12px; }
    .sed-auth-panel { padding: 34px 22px 38px; }
    .sed-auth-form-wrap h2 { font-size: 26px; }
}


/* RC10: старый служебный KERUEN MEDICUS над слоганом не показываем. */
.sed-auth-brand-kicker,
.sed-auth-kicker {
    display: none !important;
}
