/* Staff login screen. */

body.login {
    --sbp2-login-bg: #f7eee5;
    --sbp2-login-ink: #111111;
    --sbp2-login-ghost: #6b6b6b;
    --sbp2-login-line: rgba(17, 17, 17, 0.12);
    --sbp2-login-surface: #ffffff;
    --sbp2-login-field: #faf7f4;
    --sbp2-login-accent: #ff583b;
    --sbp2-login-accent-2: #e84b30;
    --sbp2-login-ring: rgba(255, 91, 54, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 72px);
    box-sizing: border-box;
    min-height: 100vh;
    padding: 40px 32px;
    background-color: var(--sbp2-login-bg);
    color: var(--sbp2-login-ink);
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    isolation: isolate;
}

body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #f7eee5;
    background-image: linear-gradient(90deg, rgba(255, 249, 242, 0.59) 0%, rgba(255, 249, 242, 0.42) 58%, rgba(255, 249, 242, 0.13) 100%), url("../backgrounds/sunburn-bg-coastal.svg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

html[data-theme="dark"] body.login {
    --sbp2-login-bg: #171d22;
    --sbp2-login-ink: #ffffff;
    --sbp2-login-ghost: rgba(255, 255, 255, 0.68);
    --sbp2-login-line: rgba(255, 255, 255, 0.16);
    --sbp2-login-surface: rgba(22, 22, 22, 0.94);
    --sbp2-login-field: #141414;
    background-color: #171d22;
    color: #ffffff;
}

html[data-theme="dark"] body.login::before {
    background-color: #171d22;
    background-image: linear-gradient(90deg, rgba(10, 17, 21, 0.72), rgba(10, 17, 21, 0.24)), url("../backgrounds/sunburn-bg-dark-topography.svg");
}

body.login #login {
    position: relative;
    z-index: 1;
    flex: 0 1 420px;
    width: min(420px, 100%);
    margin: 0;
    padding: 0;
    border-radius: 22px;
    box-shadow: 0 24px 50px -28px rgba(20, 20, 20, 0.45);
}

html[data-theme="dark"] body.login #login {
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}

body.login h1,
body.login h1 a,
body.login .wp-login-logo,
body.login h1 a::before,
body.login h1 a::after {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

.sbp2-login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 220px;
    margin: 0;
}

.sbp2-login-shrimp {
    display: block;
    width: 220px;
    height: auto;
    object-fit: contain;
    animation: sbp2-login-swim 5.5s ease-in-out infinite;
}

@keyframes sbp2-login-swim {
    0%, 100% { transform: translateY(6px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@media (max-width: 860px) {
    body.login {
        flex-direction: column;
        gap: 8px;
        padding: 28px 16px 40px;
    }

    .sbp2-login-brand,
    .sbp2-login-shrimp {
        width: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sbp2-login-shrimp {
        animation: none;
    }
}

body.login form {
    margin: 0;
    padding: 32px 28px 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    overflow: visible;
}

html[data-theme="dark"] body.login form {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(22, 22, 22, 0.94);
}

body.login form > p,
body.login .user-pass-wrap {
    margin: 0 0 16px;
    float: none;
    clear: both;
}

body.login label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sbp2-login-ghost);
}

body.login .forgetmenot label {
    display: inline;
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sbp2-login-ink);
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 14px;
    min-height: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e7e0d8;
    background: #faf7f4 !important;
    color: var(--sbp2-login-ink);
    font-size: 15px;
    line-height: 48px;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-theme="dark"] body.login form .input,
html[data-theme="dark"] body.login input[type="text"],
html[data-theme="dark"] body.login input[type="password"],
html[data-theme="dark"] body.login input[type="email"] {
    border-color: rgba(255, 255, 255, 0.16);
    background: #141414 !important;
    color: #ffffff;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #ff583b;
    box-shadow: 0 0 0 4px var(--sbp2-login-ring) !important;
    outline: none;
}

body.login form .input:-webkit-autofill,
body.login input[type="text"]:-webkit-autofill,
body.login input[type="password"]:-webkit-autofill,
body.login input[type="email"]:-webkit-autofill {
    -webkit-text-fill-color: var(--sbp2-login-ink);
    caret-color: var(--sbp2-login-ink);
    box-shadow: 0 0 0 1000px #faf7f4 inset !important;
    transition: background-color 9999s ease-out;
}

html[data-theme="dark"] body.login form .input:-webkit-autofill,
html[data-theme="dark"] body.login input[type="password"]:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px #141414 inset !important;
}

body.login .wp-pwd {
    position: relative;
    display: block;
    margin: 0;
}

body.login .wp-pwd .input,
body.login .wp-pwd input[type="password"],
body.login .wp-pwd input[type="text"] {
    margin: 0;
    padding-right: 48px;
}

body.login .wp-pwd .button.wp-hide-pw {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--sbp2-login-ghost) !important;
    box-shadow: none !important;
    line-height: 1;
}

body.login .wp-pwd .button.wp-hide-pw:hover,
body.login .wp-pwd .button.wp-hide-pw:focus {
    background: rgba(255, 88, 59, 0.1) !important;
    color: #ff583b !important;
}

body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 10px;
    float: none;
    width: auto;
    margin: 2px 0 18px;
}

body.login .forgetmenot input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ff583b;
    border-radius: 5px;
}

body.login p.submit {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.login .button.button-primary,
body.login .button-primary,
body.login #wp-submit {
    float: none;
    display: block;
    width: 100%;
    min-height: 48px;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 12px !important;
    background: #ff583b !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 48px;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

body.login .button.button-primary:hover,
body.login .button-primary:hover,
body.login #wp-submit:hover,
body.login #wp-submit:focus {
    background: #e84b30 !important;
    color: #ffffff !important;
}

body.login #nav,
body.login #backtoblog {
    margin: 0;
    padding: 14px 28px 22px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
}

html[data-theme="dark"] body.login #nav,
html[data-theme="dark"] body.login #backtoblog {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(22, 22, 22, 0.94);
}

body.login #nav a,
body.login #backtoblog a {
    color: #ff583b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login #nav a:focus,
body.login #backtoblog a:focus {
    color: #e84b30;
}

body.login #login_error,
body.login .message,
body.login .success {
    border: 0;
    border-left: 3px solid #ff583b;
    border-radius: 10px;
    background: var(--sbp2-login-surface);
    color: var(--sbp2-login-ink);
    box-shadow: 0 18px 40px -24px rgba(17, 17, 17, 0.35);
}

body.login .privacy-policy-page-link,
body.login .language-switcher,
body.login #backtoblog {
    display: none;
}
