:root {
    --cda-auth-primary: #b5364e;
    --cda-auth-primary-hover: #a20b28;
    --cda-auth-text: #333333;
    --cda-auth-placeholder: #999999;
    --cda-auth-border: #e0e0e0;
    --cda-auth-panel-width: 480px;
}

html,
body.cda-auth-login {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body.cda-auth-login {
    min-width: 0;
    color: var(--cda-auth-text);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5714;
}

body.cda-auth-login *,
body.cda-auth-login *::before,
body.cda-auth-login *::after {
    box-sizing: border-box;
}

.cda-auth-branding {
    position: fixed;
    inset: 0 var(--cda-auth-panel-width) 0 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px;
}

.cda-auth-branding__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cda-auth-branding__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 440px;
    padding: 48px;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
}

.cda-auth-branding__logo {
    display: block;
    width: 216px;
    height: 96px;
    object-fit: contain;
}

.cda-auth-branding__text {
    margin: 0;
    color: #ffffff;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: normal;
}

body.cda-auth-login #login {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: var(--cda-auth-panel-width);
    height: 100vh;
    margin: 0 0 0 auto;
    padding: 48px 96px;
    background: #ffffff;
}

body.cda-auth-login #login h1.wp-login-logo {
    display: none;
}

body.cda-auth-login .cda-auth-form-title {
    order: 10;
    flex: 0 0 32px;
    align-self: center;
    width: auto;
    height: 32px;
    margin: auto 0 12px;
    padding: 0;
    color: var(--cda-auth-text);
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
}

body.cda-auth-login .cda-auth-footer-logo {
    order: 30;
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 50px;
    margin: 0 auto;
}

body.cda-auth-login .cda-auth-footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.cda-auth-login #loginform {
    order: 20;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin: 32px 0 auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.cda-auth-login #loginform > p:first-child,
body.cda-auth-login #loginform > .user-pass-wrap {
    /* The reference Ant Design form combines a 24px item margin and gap. */
    margin: 0 0 24px;
    padding: 0;
}

body.cda-auth-login #loginform label {
    display: inline-flex;
    align-items: center;
    height: 22.8px;
    margin: 0 0 8px;
    padding: 0.8px 0 0;
    color: var(--cda-auth-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

body.cda-auth-login #loginform > p:first-child > label::before,
body.cda-auth-login #loginform > .user-pass-wrap > label::before {
    content: "*";
    margin-inline-end: 4px;
    color: #ff4d4f;
    font-family: SimSun, sans-serif;
    line-height: 1;
}

body.cda-auth-login #loginform input[type="text"],
body.cda-auth-login #loginform input[type="email"],
body.cda-auth-login #loginform input[type="password"] {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 7px 11px;
    color: var(--cda-auth-text);
    border: 1px solid var(--cda-auth-border);
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.cda-auth-login #loginform #user_login {
    padding-left: 31px;
    background-image: url("../images/user.svg");
    background-repeat: no-repeat;
    background-position: 11px center;
    background-size: 16px 16px;
}

body.cda-auth-login #loginform input::placeholder {
    color: var(--cda-auth-placeholder);
    opacity: 1;
}

body.cda-auth-login #loginform input[type="text"]:hover,
body.cda-auth-login #loginform input[type="email"]:hover,
body.cda-auth-login #loginform input[type="password"]:hover {
    border-color: var(--cda-auth-primary-hover);
}

body.cda-auth-login #loginform input[type="text"]:focus,
body.cda-auth-login #loginform input[type="email"]:focus,
body.cda-auth-login #loginform input[type="password"]:focus {
    border-color: var(--cda-auth-border);
    box-shadow: none;
}

body.cda-auth-login.cda-auth-user-interacted #loginform input[type="text"]:focus,
body.cda-auth-login.cda-auth-user-interacted #loginform input[type="email"]:focus,
body.cda-auth-login.cda-auth-user-interacted #loginform input[type="password"]:focus,
body.cda-auth-login.cda-auth-user-interacted #loginform .wp-pwd:focus-within input {
    border-color: var(--cda-auth-primary);
    box-shadow: 0 0 0 2px rgba(155, 5, 5, 0.1);
}

body.cda-auth-login #loginform .wp-pwd {
    position: relative;
    display: block;
}

body.cda-auth-login #loginform .wp-pwd input {
    padding-right: 40px;
}

body.cda-auth-login #loginform .wp-hide-pw {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--cda-auth-placeholder);
    border: 0;
    border-radius: 0 8px 8px 0;
    outline: none;
    background: transparent;
    box-shadow: none;
}

body.cda-auth-login #loginform .wp-hide-pw:hover,
body.cda-auth-login #loginform .wp-hide-pw:focus {
    color: var(--cda-auth-text);
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.cda-auth-login #loginform .wp-hide-pw .dashicons {
    width: 16px;
    height: 16px;
    background-color: currentColor;
    font-size: 0;
    line-height: 0;
    -webkit-mask: center / 16px 16px no-repeat;
    mask: center / 16px 16px no-repeat;
}

body.cda-auth-login #loginform .wp-hide-pw .dashicons::before {
    content: none;
}

body.cda-auth-login #loginform .wp-hide-pw .dashicons-visibility {
    -webkit-mask-image: url("../images/eye-invisible.svg");
    mask-image: url("../images/eye-invisible.svg");
}

body.cda-auth-login #loginform .wp-hide-pw .dashicons-hidden {
    -webkit-mask-image: url("../images/eye-visible.svg");
    mask-image: url("../images/eye-visible.svg");
}

body.cda-auth-login #loginform .forgetmenot,
body.cda-auth-login.cda-auth-action-login #nav,
body.cda-auth-login.cda-auth-action-login #backtoblog,
body.cda-auth-login.cda-auth-action-login .language-switcher,
body.cda-auth-login.cda-auth-action-login .privacy-policy-page-link {
    display: none;
}

body.cda-auth-login #loginform p.submit {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.cda-auth-login #loginform #wp-submit {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 15px;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: var(--cda-auth-primary);
    box-shadow: 0 2px 0 rgba(155, 5, 5, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5714;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.cda-auth-login #loginform #wp-submit:hover {
    color: #ffffff;
    border-color: transparent;
    background: var(--cda-auth-primary-hover);
    box-shadow: 0 2px 0 rgba(155, 5, 5, 0.1);
}

body.cda-auth-login #loginform #wp-submit:focus {
    color: #ffffff;
    border-color: transparent;
    outline: none;
    background: var(--cda-auth-primary);
    box-shadow: 0 2px 0 rgba(155, 5, 5, 0.1);
}

body.cda-auth-login #loginform #wp-submit:focus-visible {
    outline: 3px solid var(--cda-auth-primary);
    outline-offset: 1px;
}

body.cda-auth-login #login_error,
body.cda-auth-login #login .message,
body.cda-auth-login #login .success {
    order: 15;
    width: 100%;
    margin: 24px 0 -20px;
    padding: 10px 12px;
    border: 0;
    border-left: 4px solid var(--cda-auth-primary);
    background: #fff5f6;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .cda-auth-branding {
        display: none;
    }

    body.cda-auth-login {
        min-height: 100dvh;
        overflow-x: hidden;
    }

    body.cda-auth-login #login {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        padding: 32px clamp(24px, 10vw, 48px);
    }

    body.cda-auth-login .cda-auth-form-title {
        margin-top: clamp(40px, 15vh, 120px);
    }

    body.cda-auth-login .cda-auth-footer-logo {
        width: min(240px, 100%);
        height: auto;
        min-height: 50px;
        margin-top: 56px;
    }
}

@media (max-height: 620px) and (min-width: 768px) {
    body.cda-auth-login #login {
        min-height: 620px;
        height: auto;
    }
}
