/*
 * Hanzcooler Elegant Login
 */

:root {
    --hc-orange: #ff7a1a;
    --hc-red: #f04438;
    --hc-blue: #0787c8;
    --hc-deep-blue: #075c92;
    --hc-dark: #111827;
    --hc-muted: #64748b;
    --hc-line: rgba(15, 23, 42, .10);
    --hc-card: rgba(255, 255, 255, .88);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.login {
    min-height: 100vh;
    margin: 0;
    font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--hc-dark);
    background:
        radial-gradient(circle at 15% 18%, rgba(7, 135, 200, .22), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(255, 122, 26, .20), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(7, 92, 146, .16), transparent 36%),
        linear-gradient(135deg, #f7fbff 0%, #eef8ff 42%, #fff7ee 100%);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

body.login::before,
body.login::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(6px);
    opacity: .85;
}

body.login::before {
    width: 420px;
    height: 420px;
    left: -170px;
    bottom: -160px;
    background: linear-gradient(135deg, rgba(7, 135, 200, .18), rgba(7, 92, 146, .08));
    animation: hc-blob-one 12s ease-in-out infinite alternate;
}

body.login::after {
    width: 360px;
    height: 360px;
    right: -150px;
    top: -140px;
    background: linear-gradient(135deg, rgba(255, 122, 26, .20), rgba(240, 68, 56, .09));
    animation: hc-blob-two 13s ease-in-out infinite alternate;
}

body.login #login {
    width: min(430px, 100%);
    padding: 0;
    position: relative;
    z-index: 2;
    animation: hc-rise .78s cubic-bezier(.16, 1, .3, 1) both;
}

body.login #login::before {
    content: "";
    position: absolute;
    inset: 110px -18px -18px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(7, 135, 200, .22), transparent 32%),
        linear-gradient(315deg, rgba(255, 122, 26, .22), transparent 36%);
    filter: blur(18px);
    opacity: .75;
    z-index: -1;
    animation: hc-glow 5.5s ease-in-out infinite;
}

body.login h1 {
    margin: 0 0 14px;
    text-align: center;
}

body.login h1 a {
    display: block;
    width: min(330px, 88vw);
    height: 185px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: -9999px;
    outline: none;
    filter: drop-shadow(0 18px 22px rgba(15, 23, 42, .12));
    animation: hc-logo-float 4.5s ease-in-out infinite;
}

.hc-login-intro {
    margin: 0 0 16px;
    text-align: center;
    animation: hc-fade-in .9s ease both .18s;
}

.hc-login-intro .hc-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 7px 13px;
    border: 1px solid rgba(7, 135, 200, .18);
    border-radius: 999px;
    color: var(--hc-deep-blue);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 10px 30px rgba(7, 92, 146, .08);
}

.hc-login-intro strong {
    display: block;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #0f172a;
}

.hc-login-intro small {
    display: block;
    margin-top: 7px;
    color: var(--hc-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.login form {
    position: relative;
    margin: 0;
    padding: 31px 30px 28px;
    border: 1px solid rgba(255, 255, 255, .70);
    border-radius: 30px;
    background: var(--hc-card);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .16),
        inset 0 1px 0 rgba(255, 255, 255, .75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

body.login form::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--hc-orange), var(--hc-red), var(--hc-blue), var(--hc-deep-blue));
    background-size: 220% 100%;
    animation: hc-shimmer 4s linear infinite;
}

body.login label {
    color: #263449;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -.01em;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    min-height: 52px;
    margin-top: 8px;
    padding: 11px 15px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 16px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.4;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

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: rgba(7, 135, 200, .62);
    box-shadow: 0 0 0 4px rgba(7, 135, 200, .13);
    background: #fff;
    outline: none;
    transform: translateY(-1px);
}

body.login .forgetmenot {
    display: flex;
    align-items: center;
    min-height: 44px;
}

body.login .forgetmenot label {
    font-weight: 700;
    color: var(--hc-muted);
}

body.login input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border-color: rgba(15, 23, 42, .18);
    box-shadow: none;
}

body.login input[type="checkbox"]:checked::before {
    margin: -1px 0 0 -2px;
    filter: hue-rotate(150deg);
}

body.login .submit {
    margin-top: 16px;
}

body.login.wp-core-ui .button-primary {
    min-height: 52px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    color: #fff;
    text-shadow: none;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--hc-orange), var(--hc-red) 48%, var(--hc-blue) 100%);
    background-size: 180% 180%;
    box-shadow: 0 18px 34px rgba(7, 92, 146, .24), 0 10px 22px rgba(255, 122, 26, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    animation: hc-button-gradient 5.5s ease infinite;
}

body.login.wp-core-ui .button-primary:hover,
body.login.wp-core-ui .button-primary:focus {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow: 0 22px 42px rgba(7, 92, 146, .28), 0 12px 28px rgba(255, 122, 26, .24);
}

body.login.wp-core-ui .button-primary:active {
    transform: translateY(0);
}

body.login .button.wp-hide-pw {
    top: 9px;
    right: 8px;
    color: var(--hc-blue);
    border-radius: 12px;
}

body.login .button.wp-hide-pw:focus {
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(7, 135, 200, .11);
}

body.login #nav,
body.login #backtoblog {
    margin: 18px 0 0;
    padding: 0;
    text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
    color: #0f5d8c;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
    color: var(--hc-orange);
}

body.login .privacy-policy-page-link {
    margin: 16px 0 0;
    text-align: center;
}

body.login .message,
body.login .notice,
body.login #login_error {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-left: 5px solid var(--hc-blue);
    border-radius: 18px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
    color: #334155;
    font-weight: 600;
}

body.login #login_error {
    border-left-color: var(--hc-red);
}

body.login .language-switcher {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding: 0;
}

body.login .language-switcher form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.login .language-switcher form::before {
    display: none;
}

body.login .language-switcher select {
    min-height: 42px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, .14);
}

.hc-particle {
    position: fixed;
    left: var(--hc-x);
    top: var(--hc-y);
    width: var(--hc-size);
    height: var(--hc-size);
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    background: rgba(7, 135, 200, .18);
    box-shadow:
        0 0 18px rgba(7, 135, 200, .18),
        0 0 28px rgba(255, 122, 26, .10);
    animation: hc-particle var(--hc-duration) ease-in-out infinite;
    animation-delay: var(--hc-delay);
}

.hc-particle:nth-child(3n) {
    background: rgba(255, 122, 26, .18);
}

.hc-particle:nth-child(4n) {
    background: rgba(255, 255, 255, .70);
}

@keyframes hc-rise {
    from {
        opacity: 0;
        transform: translateY(26px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hc-logo-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-.6deg);
    }
}

@keyframes hc-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 220% 50%;
    }
}

@keyframes hc-button-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes hc-glow {
    0%, 100% {
        opacity: .62;
        transform: scale(.99);
    }
    50% {
        opacity: .90;
        transform: scale(1.025);
    }
}

@keyframes hc-blob-one {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(54px, -42px, 0) scale(1.08);
    }
}

@keyframes hc-blob-two {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-48px, 44px, 0) scale(1.08);
    }
}

@keyframes hc-particle {
    0%, 100% {
        opacity: .10;
        transform: translate3d(0, 0, 0) scale(.8);
    }
    50% {
        opacity: .62;
        transform: translate3d(18px, -46px, 0) scale(1.1);
    }
}

@media (max-width: 782px) {
    body.login {
        align-items: flex-start;
        padding-top: 22px;
    }

    body.login #login {
        width: min(420px, 100%);
    }

    body.login h1 a {
        width: min(300px, 86vw);
        height: 165px;
    }

    .hc-login-intro strong {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    body.login {
        padding: 18px 14px;
    }

    body.login #login::before {
        inset: 92px -10px -12px;
        border-radius: 28px;
    }

    body.login h1 a {
        width: min(260px, 88vw);
        height: 145px;
    }

    .hc-login-intro {
        margin-bottom: 14px;
    }

    .hc-login-intro strong {
        font-size: 23px;
    }

    .hc-login-intro small {
        font-size: 13px;
    }

    body.login form {
        padding: 27px 22px 24px;
        border-radius: 24px;
    }

    body.login form .input,
    body.login input[type="text"],
    body.login input[type="password"],
    body.login input[type="email"],
    body.login.wp-core-ui .button-primary {
        min-height: 50px;
        border-radius: 14px;
    }

    body.login #nav,
    body.login #backtoblog {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
