:root {
    --ce-auth-navy: #082d58;
    --ce-auth-navy-deep: #061f3d;
    --ce-auth-blue: #1768c5;
    --ce-auth-coral: #ee936f;
    --ce-auth-ink: #16314f;
    --ce-auth-muted: #62758b;
    --ce-auth-line: #d5e1ee;
    --ce-auth-pale: #f2f7fc;
}

.ce-auth-page {
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    margin: 20px auto 34px;
    color: var(--ce-auth-ink);
}

.ce-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    min-height: 510px;
    overflow: hidden;
    border: 1px solid rgba(8, 45, 88, .13);
    border-radius: 28px;
    background: #eef4fa;
    box-shadow: 0 24px 60px rgba(8, 45, 88, .16);
}

.ce-auth-story {
    --ce-auth-background-image: url("ce-login-background.png");
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 510px;
    padding: 54px 56px 46px;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(145deg, rgba(6, 31, 61, .76) 0%, rgba(8, 45, 88, .6) 58%, rgba(18, 79, 133, .44) 100%),
        radial-gradient(circle at 86% 12%, rgba(238, 147, 111, .38) 0, rgba(238, 147, 111, 0) 31%),
        var(--ce-auth-background-image);
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ce-auth-story::before,
.ce-auth-story::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.ce-auth-story::before {
    width: 310px;
    height: 310px;
    right: -145px;
    top: 66px;
}

.ce-auth-story::after {
    width: 210px;
    height: 210px;
    right: -92px;
    top: 116px;
}

.ce-auth-brand,
.ce-auth-story-copy,
.ce-auth-trust {
    position: relative;
    z-index: 1;
}

.ce-auth-background-tools {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
}

.ce-auth-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ce-auth-background-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ce-auth-background-button:hover,
.ce-auth-background-button:focus {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .2);
    transform: translateY(-1px);
}

.ce-auth-background-button-secondary {
    background: rgba(6, 31, 61, .32);
}

.ce-auth-background-status {
    flex-basis: 100%;
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    line-height: 1.4;
}

.ce-auth-background-status.is-error {
    color: #ffd4d9;
}

.ce-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ce-auth-brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.ce-auth-brand-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ce-auth-brand-subtitle {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    letter-spacing: .06em;
}

.ce-auth-story-copy {
    max-width: 445px;
    margin: 58px 0 44px;
}

.ce-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: #fff4e8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ce-auth-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ce-auth-coral);
    box-shadow: 0 0 0 4px rgba(238, 147, 111, .16);
}

.ce-auth-story h2 {
    max-width: 430px;
    margin: 0 0 17px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.ce-auth-story-copy p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    line-height: 1.7;
}

.ce-auth-trust {
    display: flex;
    gap: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.ce-auth-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 700;
}

.ce-auth-trust-icon,
.ce-auth-security-mark {
    display: grid;
    place-items: center;
    font-weight: 900;
}

.ce-auth-trust-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
}

.ce-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 58px;
    background-color: #fff;
    background-image:
        linear-gradient(rgba(8, 45, 88, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 45, 88, .025) 1px, transparent 1px);
    background-size: 28px 28px;
}

.ce-auth-kicker {
    margin-bottom: 10px;
    color: var(--ce-auth-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ce-auth-panel h1 {
    margin: 0;
    color: var(--ce-auth-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.ce-auth-intro {
    margin: 12px 0 28px;
    color: var(--ce-auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.ce-auth-login-control,
.ce-auth-form {
    display: block;
    width: 100%;
}

.ce-auth-field {
    margin-bottom: 21px;
}

.ce-auth-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--ce-auth-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
}

.ce-auth-input {
    width: 100% !important;
    height: 52px;
    box-sizing: border-box;
    padding: 0 15px !important;
    border: 1px solid #c8d6e5 !important;
    border-radius: 13px !important;
    outline: none;
    background: rgba(247, 250, 253, .96) !important;
    color: var(--ce-auth-ink) !important;
    font-size: 15px !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ce-auth-input:focus {
    border-color: var(--ce-auth-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(23, 104, 197, .12) !important;
}

.ce-auth-validation,
.ce-auth-error {
    display: block;
    color: #a51f35 !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.ce-auth-validation {
    margin-top: 7px;
    padding: 7px 9px;
    border-left: 3px solid #cf3049;
    border-radius: 6px;
    background: #fff0f3;
}

.ce-auth-error {
    margin: 0 0 16px;
}

.ce-auth-error:empty {
    display: none;
    margin: 0;
}

.ce-auth-error:not(:empty) {
    padding: 11px 13px;
    border: 1px solid #e69aa6;
    border-left: 4px solid #c9223d;
    border-radius: 11px;
    background: #fff0f3;
    color: #99162c !important;
}

.ce-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 20px;
}

.ce-auth-check {
    color: var(--ce-auth-muted);
    font-size: 12px;
    font-weight: 700;
}

.ce-auth-check input {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    accent-color: var(--ce-auth-blue);
    vertical-align: -3px;
}

.ce-auth-forgot-link {
    color: var(--ce-auth-blue) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.ce-auth-forgot-link:hover,
.ce-auth-forgot-link:focus {
    color: var(--ce-auth-navy) !important;
    text-decoration: underline !important;
}

.ce-auth-submit {
    width: 100% !important;
    height: 52px;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(105deg, var(--ce-auth-navy) 0%, var(--ce-auth-blue) 72%, #2a83de 100%) !important;
    box-shadow: 0 12px 24px rgba(8, 45, 88, .22) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: .025em;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ce-auth-submit:hover,
.ce-auth-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(8, 45, 88, .28) !important;
}

.ce-auth-help {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ce-auth-line);
    text-align: center;
    color: var(--ce-auth-muted);
    font-size: 12px;
}

.ce-auth-help-link {
    color: var(--ce-auth-blue) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.ce-auth-help-link:hover {
    text-decoration: underline !important;
}

.ce-auth-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 0;
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--ce-auth-pale);
    color: var(--ce-auth-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ce-auth-security strong {
    color: var(--ce-auth-ink);
}

.ce-auth-security-mark {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #dcebf9;
    color: var(--ce-auth-navy);
    font-size: 11px;
}

.ce-recovery-control {
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ce-auth-ink) !important;
    font-family: inherit !important;
    font-size: 13px !important;
}

.ce-recovery-control table {
    width: 100% !important;
    border-collapse: collapse;
}

.ce-recovery-control td {
    padding: 7px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ce-auth-ink) !important;
    text-align: left !important;
}

.ce-recovery-control input[type="text"],
.ce-recovery-control input[type="password"] {
    width: 100% !important;
    height: 52px;
    box-sizing: border-box;
    padding: 0 15px !important;
    border: 1px solid #c8d6e5 !important;
    border-radius: 13px !important;
    outline: none;
    background: rgba(247, 250, 253, .96) !important;
    color: var(--ce-auth-ink) !important;
    font-size: 15px !important;
}

.ce-recovery-control input[type="text"]:focus,
.ce-recovery-control input[type="password"]:focus {
    border-color: var(--ce-auth-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(23, 104, 197, .12) !important;
}

.ce-recovery-control input[type="submit"] {
    width: 100% !important;
    min-height: 50px;
    margin-top: 7px;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(105deg, var(--ce-auth-navy) 0%, var(--ce-auth-blue) 100%) !important;
    box-shadow: 0 12px 24px rgba(8, 45, 88, .2) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.ce-recovery-control span[style*="Red"],
.ce-recovery-control span[style*="red"] {
    color: #a3293d !important;
    font-size: 11px;
    font-weight: 700;
}

.ce-recovery-form {
    display: block;
    width: 100%;
}

.ce-recovery-message {
    display: block;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #b9ddc7;
    border-radius: 12px;
    background: #effbf3;
    color: #17653a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.ce-recovery-message.is-error {
    border-color: #e69aa6;
    border-left: 4px solid #c9223d;
    background: #fff0f3;
    color: #99162c !important;
}

.ce-recovery-validation-summary {
    display: block;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e69aa6;
    border-left: 4px solid #c9223d;
    border-radius: 12px;
    background: #fff0f3;
    color: #99162c !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

.ce-recovery-validation-summary:empty {
    display: none;
}

.ce-recovery-validation-summary ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.ce-recovery-account-found {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid #b9ddc7;
    border-radius: 12px;
    background: #effbf3;
    color: #316047;
    font-size: 12px;
    line-height: 1.5;
}

.ce-recovery-account-found strong {
    color: #164b2e;
}

.ce-recovery-account-found .ce-auth-security-mark {
    background: #d8f3e2;
    color: #17653a;
    font-size: 9px;
}

.ce-recovery-actions {
    display: grid;
    gap: 12px;
    margin-top: 5px;
}

.ce-auth-secondary-button {
    display: block;
    width: 100% !important;
    min-height: 48px;
    padding: 10px 16px !important;
    border: 1px solid #aac0d6 !important;
    border-radius: 13px !important;
    outline: none;
    background: linear-gradient(180deg, #f8fbfe 0%, #e8f0f8 100%) !important;
    box-shadow: 0 6px 14px rgba(8, 45, 88, .09) !important;
    color: var(--ce-auth-navy) !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 900 !important;
    appearance: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ce-auth-secondary-button:hover,
.ce-auth-secondary-button:focus {
    border-color: var(--ce-auth-blue) !important;
    box-shadow: 0 9px 18px rgba(8, 45, 88, .14) !important;
    transform: translateY(-1px);
}

.ce-recovery-sent {
    padding: 25px 22px;
    border: 1px solid #b9ddc7;
    border-radius: 17px;
    background: #f1fbf5;
    text-align: center;
}

.ce-recovery-sent-mark {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 13px;
    place-items: center;
    border-radius: 15px;
    background: #d8f3e2;
    color: #17653a;
    font-size: 23px;
    font-weight: 900;
}

.ce-recovery-sent-mark.is-warning {
    background: #fff1d7;
    color: #9a6213;
}

.ce-recovery-sent h3 {
    margin: 0 0 10px;
    color: var(--ce-auth-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.ce-recovery-sent p {
    margin: 7px 0;
    color: var(--ce-auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.ce-auth-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 18px;
    text-decoration: none !important;
}

.ce-recovery-policy {
    margin: -2px 0 18px;
    padding: 11px 13px;
    border-radius: 11px;
    background: var(--ce-auth-pale);
    color: var(--ce-auth-muted);
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .ce-auth-shell { grid-template-columns: 1fr; }
    .ce-auth-story { min-height: auto; padding: 34px 36px; }
    .ce-auth-story-copy { margin: 42px 0 32px; }
    .ce-auth-story h2 { font-size: 38px; }
    .ce-auth-panel { padding: 42px 36px 46px; }
}

@media (max-width: 560px) {
    .ce-auth-page { width: 100%; margin-top: 12px; }
    .ce-auth-shell { border-radius: 20px; }
    .ce-auth-story, .ce-auth-panel { padding: 28px 22px; }
    .ce-auth-story-copy { margin: 34px 0 28px; }
    .ce-auth-story h2, .ce-auth-panel h1 { font-size: 32px; }
    .ce-auth-trust { flex-direction: column; gap: 10px; }
    .ce-auth-options { align-items: flex-start; flex-direction: column; gap: 10px; }
}
