/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
  /*   backdrop-filter: blur(5px); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 登录弹窗样式 */
.login-modal {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    position: relative;
}

.overlay.active .login-modal {
    transform: scale(1);
}

.close-btns {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f1f1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btns:hover {
    background: #ff4757;
    color: white;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6a11cb;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #6a11cb;
    outline: none;
}

.send-code {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #6a11cb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.send-code:hover:not(:disabled) {
    background: #5809b5;
}

.send-code:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.submit-btns {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.submit-btns:hover:not(:disabled) {
    background: linear-gradient(135deg, #5809b5 0%, #1c64e0 100%);
    transform: translateY(-2px);
}

.submit-btns:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #6a11cb;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
    display: none;
}

@media (max-width: 500px) {
    .login-modal {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }
}