:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #172033;
    background: #18aee5;
    font: 16px/1.55 Arial, "Microsoft YaHei", sans-serif;
}

.oly-auth-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 76px 20px 48px;
    background: #18aee5 url("./background.jpg") center / 100% 100% no-repeat;
}

.oly-auth-page::before,
.oly-auth-page::after {
    display: none;
}

.oly-auth-page::before {
    width: 360px;
    height: 360px;
    top: -180px;
    left: -100px;
}

.oly-auth-page::after {
    width: 500px;
    height: 500px;
    right: -260px;
    bottom: -300px;
}

.oly-auth-language {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 28px;
}

.oly-auth-language select {
    min-width: 106px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 6px;
    padding: 0 30px 0 11px;
    color: #124462;
    background: rgba(255, 255, 255, .88);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.oly-auth-card {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 16px;
    padding: 32px 38px 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 58px rgba(13, 69, 98, .2);
}

.oly-auth-brand {
    margin-bottom: 22px;
    color: #2777bd;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
    text-align: center;
}

.oly-auth-head {
    margin-bottom: 24px;
    text-align: center;
}

#email-public[data-mode="forgot"] .oly-auth-head {
    text-align: left;
}

.oly-auth-head h1 {
    margin: 0;
    color: #172033;
    font-size: 23px;
    line-height: 1.3;
}

.oly-auth-head p {
    margin: 10px 0 0;
    color: #6d788a;
    font-size: 13px;
    line-height: 1.6;
}

.oly-auth-field {
    margin-bottom: 18px;
}

.oly-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #3d4960;
    font-size: 14px;
    font-weight: 600;
}

.oly-auth-field input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 1px solid #c2ccd9;
    border-radius: 6px;
    padding: 0 13px;
    outline: 0;
    color: #172033;
    background: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.oly-auth-field input:focus {
    border-color: #2777bd;
    box-shadow: 0 0 0 3px rgba(39, 119, 189, .12);
}

.oly-auth-field input[aria-invalid="true"] {
    border-color: #c73e3e;
}

.oly-auth-submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    color: #fff;
    background: #2873bc;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, transform .1s;
}

.oly-auth-submit:hover {
    background: #1d5f9f;
}

.oly-auth-submit:active {
    transform: translateY(1px);
}

.oly-auth-submit:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.oly-auth-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 9px;
}

.oly-auth-strength span {
    height: 4px;
    border-radius: 4px;
    background: #e5e9ef;
}

.oly-auth-strength[data-score="1"] span:nth-child(-n+1) { background: #d64545; }
.oly-auth-strength[data-score="2"] span:nth-child(-n+2) { background: #e58a24; }
.oly-auth-strength[data-score="3"] span:nth-child(-n+3) { background: #d1a817; }
.oly-auth-strength[data-score="4"] span { background: #14804a; }

.oly-auth-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: -4px 0 20px;
    border-radius: 6px;
    padding: 12px 14px;
    color: #6d788a;
    background: #f5f7fa;
    font-size: 12px;
}

.oly-auth-rules > div::before {
    margin-right: 5px;
    content: "○";
}

.oly-auth-rules .pass {
    color: #14804a;
}

.oly-auth-rules .pass::before {
    content: "✓";
}

.oly-auth-field-help {
    min-height: 19px;
    margin: 6px 0 -8px;
    color: #6d788a;
    font-size: 12px;
}

.oly-auth-field-help.pass {
    color: #14804a;
}

.oly-auth-field-help.error {
    color: #c43232;
}

.oly-auth-status {
    min-height: 0;
    margin: 18px 0 0;
    color: #315d83;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-align: center;
}

.oly-auth-status:not(:empty) {
    border-radius: 6px;
    padding: 11px 12px;
    background: #eef6ff;
}

.oly-auth-status.success:not(:empty) {
    color: #167447;
    background: #eaf8f0;
}

.oly-auth-back {
    display: block;
    margin-top: 20px;
    color: #2868a5;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.oly-auth-back:hover {
    text-decoration: underline;
}

.oly-password-field {
    position: relative;
}

.oly-password-field > input {
    padding-right: 48px !important;
}

.oly-password-reveal {
    position: absolute;
    top: 5px;
    right: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    padding: 0;
    color: #68758a;
    background: transparent;
    cursor: pointer;
}

.oly-password-reveal:hover {
    background: #f1f4f8;
}

.oly-auth-page button:focus-visible,
.oly-auth-page a:focus-visible,
.oly-auth-page select:focus-visible {
    outline: 2px solid #185d9a;
    outline-offset: 3px;
}

.oly-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.oly-auth-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 28, 43, .58);
}

.oly-auth-modal-panel {
    width: min(460px, 100%);
    border-radius: 14px;
    padding: 28px 26px 24px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.oly-auth-modal-panel p {
    margin: 0;
    color: #172033;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.oly-auth-modal-panel button {
    display: block;
    min-width: 112px;
    min-height: 44px;
    margin: 24px 0 0 auto;
    border: 0;
    border-radius: 7px;
    padding: 9px 24px;
    color: #fff;
    background: #2873bc;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.oly-auth-modal-panel button:focus-visible {
    outline: 3px solid rgba(39, 119, 189, .28);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .oly-auth-page {
        align-items: start;
        padding: 68px 14px 28px;
    }

    .oly-auth-language {
        top: 18px;
        right: 16px;
    }

    .oly-auth-card {
        border-radius: 12px;
        padding: 27px 21px 25px;
    }

    .oly-auth-brand {
        margin-bottom: 18px;
        font-size: 25px;
    }

    .oly-auth-head h1 {
        font-size: 21px;
    }

    .oly-auth-rules {
        grid-template-columns: 1fr;
    }

    .oly-auth-modal {
        padding: 18px;
    }

    .oly-auth-modal-panel {
        border-radius: 12px;
        padding: 24px 21px 20px;
    }

    .oly-auth-modal-panel p {
        font-size: 15px;
    }

    .oly-auth-modal-panel button {
        width: 100%;
        margin-top: 20px;
    }
}
