/* SiteOS-style full-viewport login (shared). Card uses fixed neutrals so dark pages (e.g. Engine) stay readable. */

#login-view {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    background-color: var(--siteos-black, #0a0a0a);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0a0a0a;
    z-index: 0;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: zh-login-float-orb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--siteos-cyan, #2ad1ed);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--siteos-purple, #bc00ff);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: var(--siteos-blue, #7b66f6);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes zh-login-float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10%, 20%) scale(1.2);
    }
    100% {
        transform: translate(-10%, -10%) scale(0.9);
    }
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 50px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 32px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}

#login-view .login-logo-block {
    color: #111827;
}

.login-logo-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto 30px;
    transition: opacity 0.2s;
}

.login-logo-block:hover {
    opacity: 0.8;
}

.login-logo-block .siteos-emblem {
    height: 56px;
    width: auto;
    margin-right: 16px;
    flex-shrink: 0;
}

.login-logo-block .siteos-text-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.login-logo-block .siteos-text-main {
    font-size: 44px;
    line-height: 1;
    color: #0a063c;
    letter-spacing: -0.02em;
}

.login-heading {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-subheading {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 30px;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.login-form label {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.login-form input {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: #111827;
}

.login-form input:focus {
    border-color: var(--siteos-purple, #bc00ff);
    box-shadow: 0 0 0 4px rgba(188, 0, 255, 0.1);
    background: #fff;
}

.btn-login-submit {
    background: linear-gradient(
        135deg,
        var(--siteos-cyan, #2ad1ed) 0%,
        var(--siteos-blue, #7b66f6) 50%,
        var(--siteos-purple, #bc00ff) 100%
    );
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(188, 0, 255, 0.25);
}

.back-to-site {
    margin-top: 30px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease;
}

.back-to-site:hover {
    color: var(--siteos-purple, #bc00ff);
}
