* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("image/野餐.webp");
    background-color: #0078D7;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lockscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("image/野餐.webp");
    background-size: cover;
    background-position: center;
    z-index: 10;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 10%;
    
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform; 
}

.lockscreen.slide-up {
    transform: translateY(-100%);
}

.lockscreen-content {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lockscreen .time {
    font-size: 90px;
    font-weight: 100;
    line-height: 1;
}

.lockscreen .date {
    font-size: 30px;
    font-weight: 300;
    margin-top: 10px;
}

.lockscreen .tip {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-align: center;
    width: 100%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.login-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.username {
    color: white;
    font-size: 34px;
    font-weight: 300;
    margin-bottom: 25px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.password-container {
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transition: border-color 0.1s, background-color 0.1s;
}

.password-container:focus-within {
    border-color: #0078D7; 
    background: white;
}

.password-container input {
    width: 276px;
    height: 36px;
    border: none;
    outline: none;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    background: transparent;
    color: white;
    border-radius: 0;
}

.password-container input::-ms-reveal {
    filter: invert(1);
}
.password-container:focus-within input::-ms-reveal {
    filter: invert(0);
}

.password-container:focus-within input {
    color: black;
}

.password-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.password-container:focus-within input::placeholder {
    color: #999999;
}

.password-container button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: transparent;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transparent 0.1s;
}

.password-container:focus-within button {
    color: black;
    background: #E6E6E6;
}

.password-container button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}
.password-container:focus-within button:hover {
    background: #CCCCCC !important;
}

#loginButton {
    background: rgba(255, 255, 255, 0.15);
}

.error-message {
    color: #E6E6E6;
    font-size: 14px;
    margin-top: 8px;
    padding-left: 2px;
    display: none;
    font-weight: 400;
}
.password-container:focus-within + .error-message {
    color: #E6E6E6; 
}

